Simple Google Search Form


/ Published in: JavaScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.