Posted By

preston91 on 06/03/08


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

blackabee
carlosabargues


Simple Google Search Form


 / Published in: JavaScript
 

Easy form to use. Just enter the item to be searched and click the search button. Great for comment boards and blogs, even forums.

  1. <script>
  2. function googles()
  3. {
  4. s = document.google.search.value
  5. window.open('http://www.google.com/search?q=' + s)
  6. }
  7. </script>
  8. <h3>Google Search</h3>
  9. <form name = 'google' method = 'post'>
  10. Enter Search Term:<input type = 'text' value = '' name = 'search'>
  11. <p><input type = 'button' onclick = 'googles()' value = 'Search'>
  12. </form>

Report this snippet  

You need to login to post a comment.