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
Sources
tab - In the right most column, find the
Global Listeners
collapsible area and expand it
- Expand the
beforeunload
Global Listener section - Click the
Remove
button for each Event Listener you want to remove
Leave a Reply