want to show custom jquery dialog box with Yes , No and Cancel button when user tries to navigate away current page/form or try to close window.
on beforeload event shows default browser dialog confirmation. I dont want to show that dialoge.
Is it possible to prevent the default unload event & show custom dialog ?