You can not do that as confirm/alert/prompt are JS functions that calls the execution of code in the Browser application, which is written with a language (eg. C#, Java) that allows the creation of true modal dialogs: windows that stops the execution of the application until the user closes or interacts with it. So, in your case, the jConfirm method can't stop the execution of the page as alert can do. To do what you need i suggest to pass to the jConfirm method a callback that will be executed after the impromptu callback only if the user clicks ok
jConfirm("Are you sure?","Confirm",dialogResult);
function dialogResult(v)
{
alert(v);
}
function jConfirm(text, title, dialogResultCallback) {
$.prompt(text, {
title: title,
html: text,
buttons: { OK: true, Cancel: false },
callback:function(e,v,m,f)
{
if(v)
dialogResultCallback(v);
}
});
}