This script submits the form automatically after 5 seconds
<html>
<head>
<SCRIPT LANGUAGE="JavaScript"><!--
setTimeout('document.test.submit()',5000);
//--></SCRIPT>
</head>
<body>
<form name="test" id="form1" method="post" action="http://www.php.net/search.php">
<p>
<input name="pattern" type="text" id="pattern" />
<input name="show" type="hidden" id="show" value="quickref" />
</p>
<p><input type="submit" name="next" value="Next" />
</p>
</form>
</body>
</html>
<html>
<head>
<SCRIPT LANGUAGE="JavaScript"><!--
setTimeout('document.test.submit()',5000);
//--></SCRIPT>
</head>
<body>
<form name="test" id="form1" method="post" action="http://www.php.net/search.php">
<p>
<input name="pattern" type="text" id="pattern" />
<input name="show" type="hidden" id="show" value="quickref" />
</p>
<p><input type="submit" name="next" value="Next" />
</p>
</form>
</body>
</html>
0 comments:
Post a Comment
Thanks for your valuable Comment