Why is it helpful
* if we closes a page without saving we often saw a message
*You can add message to user eg "NOT FOR MINORS"
*An error message
<input type="button" onclick="alert('Your message eg:-FOR MINORS')" value="Click here">