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
<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