Hi everyone! I have some problem with opening a Search page in a new (_Blank) window form the frame window. I have this script for search and it works, but it opens the search window in the same frame window. It's awful!
function startSearch(){searchString = document.searchForm.searchText.value;if(searchString != ""){searchEngine = document.searchForm.whichEngine.selectedIndex + 1;finalSearchString = "";
if(searchEngine == 1){finalSearchString = "http://www.geocities.com/mySite/mysite.htm";}
if(searchEngine == 6){finalSearchString = "http://www.google.com/search?q=" + searchString + "&btnG=Google+Search";}
if(searchEngine == 7){finalSearchString = "http://www.icyspicy.com/cgi-bin/search/search.cgi?keywords=" + searchString;}
and so on...
This what I have in HTML
<form name="searchForm"><br>
<p > find
<input name="searchText" type="text" /> with
<select name="whichEngine" onchange="startSearch()" >
<option selected>Select</option>
<option>Google</option>
<option>IcySpicy</option>
</select>
</p>
</form>
Do I need to change something in the script above to make it works properly?
Thanks in advance!
function startSearch(){searchString = document.searchForm.searchText.value;if(searchString != ""){searchEngine = document.searchForm.whichEngine.selectedIndex + 1;finalSearchString = "";
if(searchEngine == 1){finalSearchString = "http://www.geocities.com/mySite/mysite.htm";}
if(searchEngine == 6){finalSearchString = "http://www.google.com/search?q=" + searchString + "&btnG=Google+Search";}
if(searchEngine == 7){finalSearchString = "http://www.icyspicy.com/cgi-bin/search/search.cgi?keywords=" + searchString;}
and so on...
This what I have in HTML
<form name="searchForm"><br>
<p > find
<input name="searchText" type="text" /> with
<select name="whichEngine" onchange="startSearch()" >
<option selected>Select</option>
<option>Google</option>
<option>IcySpicy</option>
</select>
</p>
</form>
Do I need to change something in the script above to make it works properly?
Thanks in advance!