Here is what you need to do (copy and paste):
<html> <head> <script type="text/javascript"> function submitForm() { </script> </head> <body> <form method="post" id="ismForm" name="ismForm" action="http://www.test.com" class=""> <label for="searchBox">Search </label> <input type="text" id="searchBox" name="q" value=""> <input type="hidden" id="sayTminLength" value="3"> <input type="hidden" id="coDomain" value="US"> <input class="button" onclick="btnSearchClick();" type="button" id="search.x" name="search.x" value="Search" autocomplete="off"> </form> </body> </html>
Or, if you want to submit the form in 5 seconds, attach the btnSearchClick () call to the windown.onload event as follows: window.onload = btnSearchClick
source share