Google Search

by Prabakaran 2012-09-07 17:49:50

<script type="text/javascript">
function google()
{
var str=document.getElementById('googlebox').value;
str="http://www.google.com/search?hl=en&source=hp&q=" + str + "&aq=f&oq=&aqi=";
var replaced=str.replace(" ","+");
window.location.replace(replaced)
}
function google1()
{
var str=document.getElementById('googlebox').value;
str="http://www.google.co.in/search?hl=en&source=hp&biw=" + str + "&&q=&btnI=I%27m+Feeling+Lucky&aq=f&aqi=&aql=&oq=&gs_rfai=";
var replaced=str.replace(" ","+");
window.location.replace(replaced)
}





</script>
<center><br><br><br><br><img src="google.jpg"><br><br>
<input type="text" value="" size=50 id="googlebox"/><br><br>
<input type="button" value="Goto search" onclick="google()"/>&nbsp;&nbsp;
<input type="button" value="I'm Feeling Lucky" onclick="google1()"/>

Tagged in:

639
like
0
dislike
0
mail
flag

You must LOGIN to add comments