input type="button" multiple tasks
I have a search engine linked to an select option list:
If I click the search button with no search query it works wel and the selected website is opend in a new window. However; if I type a search query then two windows are opened, one with the search query and the other without. How can I separate, so that if a search query is entered only (one window) with the search results is opened?
<select id="web" class="select" >
<option value="http://www.google.com/" >Google</option>
<option value="http://www.yahoo.com/" >Yahoo</option>
<input type="button" value="Search"
onclick="ob=this.form.web;window.open(ob.options[ob.selectedIndex].value); startsearch('one'); return false;" class="button" />
Type it where exactly? What does startsearch do? For Google anyway, to open a window with a search query, you would open "http://google.com/#q=does+this+work"
Hi Declan1991 ,
Originally Posted by Declan1991
I'm sorry for not responding. I have been to busy (still am). However I am planning to look in to this in the distant future.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)