Skip to main content

Disable "Are you sure you want to leave this page" notice in IE9

The "Are you sure you want to leave this page" notice in Internet Explorer 9 is a browser-level dialog and is not part of the page's DOM. Therefore, it cannot be handled like a regular HTML element using Appvance/Sahi selectors.

This notice is typically triggered by JavaScript running on the page, such as the beforeunload event.

To prevent the notice from appearing, disable thisActive notice:scripting in Internet Explorer:

    Select Start, enter internetInternet optionsOptions, and select Internet Options. Select the Security tabtab. Click Custom Level. Scroll down to Scripting.Under CheckActive scripting, select Disable.Click OK and apply the changes.

    Disabling Active scripting prevents the page's JavaScript from triggering the browser-level confirmation dialog.

    Note: Disabling

    Active scripting can affect other JavaScript-based functionality on the page. Use this setting only when required for the test environment.

    Last updated: MarchAugust 10,17, 20232026

    If you have any feedback on this topic, please contact us at documentation@appvance.ai