The alertLeave() method displays a popup box with the option to either leave the page or stay on it. It will be displayed only when the page tries to unload.
Browser support: all
TheMadScript Version: 2.0.0
Syntax: alertLeave(message);
The syntax below will tell the browser to alert you when you try to leave the page.
alertLeave("Are you sure you want to leave?");
No comments:
Post a Comment