Monday, April 1, 2013

How to add confirmation box to forms using Javascript?

No need to worry, it's a simple task. By adding "onclick" function to submit buttons.
syntax:  
onclick="return confirm('Do you like to proceed?');"
Example: 
<input type="submit" name="submit" value="Submit" onclick="return confirm('Do you like to proceed?');">

No comments:

Post a Comment