Open eltazy opened 6 months ago
The event preventing leaving the page remains and is found on other pages since it was added on window. We should have an alert() only on a form page.
window
alert()
The event preventing leaving the page remains and is found on other pages since it was added on
window
. We should have analert()
only on a form page.