This has probally been asked a thousnad times, but here it goes.
I have built a search bar into my website, and i want the user the be able to enter any text and be able to search google in a new window/tab. This is the code i have so far:
<div id="search"> <form method="get" target="_new" action="https://www.google.com/search?q"+document> <input type="text" id="searchtxt" /> <input type="submit" name="q" id="searchbtn"/> </form> </div>
The issue i am having is when i type say "test" into the search box and clikc search, i go to google but the word it has searched is submit.
Any help would be great