Copied code from : http://www.google.com/searchcode.html
Edited it. (Why? I took out the code for the Google logo and also edited the target tag to show the results page into a new page. If you do not want the changes I made then refer to the Google source above.)
Result:
<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.com/search" target="_blank">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<INPUT TYPE=text name=q size=25 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
</td>
<!-- Search Google -->
Now all you need to do is insert the code to your page.
Postscript: Working sample found on the sidebar.Suggestions on how to hack the code? All shared knowledge and/or opinion accepted.
No comments:
Post a Comment