It's showing dialogue and after some second dialogue is hiding.it navigate to another page.
I want to stop navigation and when i complete my work in dialogue. press ok(button) then it continue to navigation.
I write jquery in page
$(window).bind('beforeunload',function(){
var continued=document.getElementById("Form:testID1").value;
if(continued==="true"){
PF('dialogwidgetvar').show();
}
});
//I tried this one as Suggestion
function f(){
var continued=document.getElementById("Form:testID").value;
if(continued==="true"){
PF('dialogWidgetVar').show();
}
}
window.addEventListener('beforeunload', f(), true);