I have an application which is used to navigate to another page, a Kind of web browser, The problem is for some web pages it says "Are you sure you want to leave this page ? " dialogue. I want to remove it totally. It should start navigating without this dialogue. I tried this,
WebBrowser.ScriptErrorsSuppressed = True
window.onbeforeunload = null;
you can prevent its handlers code from running.