12
rated 0 times
[
16]
[
4]
/ answers: 1 / hits: 21327
/ 11 Years ago, thu, march 14, 2013, 12:00:00
The following is the code.
<html>
<head>
<script type=text/javascript>
function call() {
alert(hai);
}
</script>
</head>
<body>
<form name=login method=post action=>
<input type=submit name=Submit value=login onSubmit=call()>
</form>
</body>
</html>
Is it possible to create an event onSubmit
inside the input element type button
.
This is for an assignment. I was told by my tutor that it is possible. Any help would be highly appreciated.
Thank you.
More From » html