Conformation message box in Javascript

unni krishnan.r's Avatar, Join Date: Apr 2010
Skilled contributor


The javascript alert is a dialogue box that pops up and takes the faces away from current window and focus to read message

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
*Conformation message
<input type="button" onclick="alert('Your message eg:-FOR MINORS')" value="Click here">
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
This cannot be an Article and I will suggest you to go through our Article Writing Guidelines