Form onSubmit event handler : onSubmit : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » onSubmit »

 

Form onSubmit event handler

















<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
function sendMe()
{
    return confirm("Do you want to continue the submission?");
}

//  -->
</script>
</head>
<body>
<form name="form1" method="POST" action="" onSubmit="return sendMe()">
<P><input type="text" name="inp1">
<input type="submit" value="Submit" >
<input type="reset" value="Reset"></p>
</form>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» onSubmit