COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button
VB SCRIPT ONSUBMIT EVENT TYPE
onsubmit Event Type
Another most important event type is onsubmit.
This event occurs when you try to submit a form.
So you can put your form validation against this
event type. The Form is submitted by clicking on
Submit button, the message box appears.
Example
<html>
<head>
</head>
<body>
<script language="VBScript">
Function fnSubmit()
Msgbox("Hello Tutorialspoint.Com")
End Function
</script>
<form action="/cgi-bin/test.cgi" method="post" name="form1" onSubmit="fnSubmit()">
<input name="txt1" type="text"><br>
<input name="btnButton1" type="submit" value="Submit">
</form>
</script>
</body>
</html>
No comments:
Post a Comment