Monday, January 08, 2007

How to get confirmation before submitting a form using javascript?

var agree=confirm("Are you sure you wish to continue?");

if (agree) {
return true;
} else {
return false ;
}

No comments: