Thursday, 1 March 2012

onsubmit

<html>
<head>
<script type="text/javascript">
function Input()
{
fname=document.forms[0].fname.value;
alert("go " + fname + "! You will now be redirected to www.latestall707.blogspot.com");
}
</script>
</head>
<body>
<form onsubmit="Input()" action="http://latestall707.blogspot.com/">
Enter your name: <input id="fname" type="text" size="20">
<input type="submit">
</form>
</body>
</html>

No comments:

Post a Comment