Thursday, November 6, 2008

Simple form confirmation

If you want a simple form confirmation, here you go:

<form onsubmit="return confirm('Are you sure you want to send this?');">

Just make sure the onsubmit is in your form tag and it will have a popup dialog confirming the submission of the form.  Very simple.

No comments: