Hid_Enigma
In Runtime
- Messages
- 154
Can anyone tell me what is wrong with this code. I am trying to have a google, wikipedia, and dictionary.com search box on my home page. I do not want to have the search button on the page and want to hit enter to start the search. I have the code written but it does not search when I hit enter. I have even added a search button to see if that will work without any success. Here is what I have for the code:
<td width="33%"><p align="center"><strong><u><font color="#C0C0C0">Search Engine</a></font></u></strong></p>
<p align="center" form action="http://www.google.com/search">
<input type="text" name="q" value="" id="textbox">
<INPUT TYPE="Submit" VALUE="Search">
<script>document.getElementById('textbox').focus()</script></p>
</form>
<td width="33%"><p align="center"><strong><u><font color="#C0C0C0">Search Engine</a></font></u></strong></p>
<p align="center" form action="http://www.google.com/search">
<input type="text" name="q" value="" id="textbox">
<INPUT TYPE="Submit" VALUE="Search">
<script>document.getElementById('textbox').focus()</script></p>
</form>