2 comments:

I used this in onBeforeUnload event, when user click any link/button to navigate away from this page, it ask this confirmation. But in both Yes and No buttons, it navigates to another page. How can I stop this in No button? What I want is when user press NO, he should remain in the same page.