www.webdeveloper.com
Results 1 to 2 of 2

Thread: HTML Search Box Help

  1. #1
    Join Date
    Aug 2008
    Posts
    4

    HTML Search Box Help

    Hi I was wondering if anyone knew how to add text after a search. I have a google search and I want to customize it so it says "+Video" after what i search. so if i searched "Guitar Lessons" it would search "Guitar Lessons +Video." Thank you for you time

    My code so far

    <!-- GOOGLE -->
    <font color="666666">
    Google<br />
    <form method="get" target="_blank" action="http://www.google.com/search"> <input name="q" maxlength="255" type="text" /> <input value="Go" type="submit" /> </form>
    <p>

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    <form method="get" target="_blank" action="http://www.google.com/search" onsubmit="this.q.value+=' +video';"> 
    <input name="q" maxlength="255" type="text" /> 
    <input value="Go" type="submit" /> 
    </form>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles