PDA

Click to See Complete Forum and Search --> : Google Search


Rh0ads
Jan 20th, 2002, 04:28 PM
Hello, I am trying to add a Google Search to my page and i have the following code:

<form name="f">
<input maxLength=256 size=15 name=q value="">
<input type=submit value="Search" name=btnG>
<input type=reset value="Clear">
</form>

<script language="JavaScript">
function Go()
{
var b="http://www.google.com/search?q="+escape(document.f.q.value)+"&btnG=Google+Search";
a=window.open(b,"Search Google","dependent=0,location=0");
}


Whenever I type something in the search results load in the current frame, can anyone tell me how to make them load into a different frame, or a whole new window?

George

da_silvy
Jan 21st, 2002, 01:54 AM
<input type=submit value="Search" name=btnG onclick="javascript:Go()">


?

progressive
Jan 21st, 2002, 03:54 AM
The below will open google search in a new window.
No need for javascript!


<form name="f" method="get" action="http://www.google.com/search?" target="_blank">
<input maxLength=256 size=15 name=q value="">
<input type=submit value="submit" name=submit>
<input type=reset value="Clear">
</form>