I was doing some troubleshooting and wanted to disable the beforeunload event listeners on a page. This is how I accomplished it with the Chrome browser.
- Open the Chrome Developer Tools
- Go to the
Sourcestab - In the right most column, find the
Global Listenerscollapsible area and expand it

- Expand the
beforeunloadGlobal Listener section - Click the
Removebutton for each Event Listener you want to remove

Leave a Reply