<html>
<head><title>title object</title>
<script type="text/javascript">
function f1()
{
document.bgColor="green";
alert("form sumited");
}
</script>
</head>
<body >
<form method="post" onsubmit="f1()">
<input type="text" name="t1">
<input type="submit" value="submit">
</form>
</body>
</html>
video demo
0 Comments