FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Problem opening Google from my site





DoctorBeaver
I've added the HTML for Google search onto my site & it all works fine - except it won't open in a new window. I can't add target="_BLANK" to the <a> tag as it's clicking the Search button or hitting Return that loads Google. If visitors do a search and start wandering off through links on sites they go to from there, they'd have to multi-click Back in their browser to return to my site. That is such a pain! Does anyone know how I can get around this?
wumingsden
DoctorBeaver wrote:
I've added the HTML for Google search onto my site & it all works fine - except it won't open in a new window. I can't add target="_BLANK" to the <a> tag as it's clicking the Search button or hitting Return that loads Google. If visitors do a search and start wandering off through links on sites they go to from there, they'd have to multi-click Back in their browser to return to my site. That is such a pain! Does anyone know how I can get around this?


Could you post the whole code ?
SoftStag
I don't think Google alow you to modify their code.
wumingsden
SoftStag wrote:
I don't think Google alow you to modify their code.


Thats a bit dissappointing, there must be some way to get links to open up in a new window, (apart from the one already tried)
kcarring
maybe your should create a pop-up page, that then has the google search, on it...instead. That way your website sits in the background the whole while. Maybe laybe it as such so people "know" it's a pop up.
just a thought.
SoftStag
Have a search link that opens in a new page with the Google search on it.
kcarring
haha thats what i just said lol
recep
google doesnt allow you to change its codes unless you write your own searching codes of modify very good.
if you post your codes l think u can get help.
thanks..
DoctorBeaver
<div id="googlebox">
<center>
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="">
<tr>
<td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=25 maxlength=255 value="">

<!-- You can alter the text on the google search button by changing VALUE= to be whatever you want -->
<INPUT type=submit name=btnG VALUE="Go get it!">
</td>
</tr>
</TABLE>
</FORM>
</center>
</div> <!-- close googlebox -->


That's the code.

I want avoid popups as too many people have them blocked. I want the search on my index page only. Having a link to a whole new page that just has the search on it is a waste & defeats the object of having it in the 1st place; i.e. an extra attraction for the visitor. If they have to click a link to even get at the search, they won't bother with it.
I just want the goddam thing to open in a new window. grrrrrrr Evil or Very Mad
DoctorBeaver
Panic over... I've cracked it! I was putting target="_BLANK" in the wrong place.
I put it in
<A HREF="http://www.google.com/">
but it goes in the
<FORM method=GET action="http://www.google.com/search"> tag.
D'OH at me for being dim.
wumingsden
DoctorBeaver wrote:
Panic over... I've cracked it! I was putting target="_BLANK" in the wrong place.
I put it in
<A HREF="http://www.google.com/">
but it goes in the
<FORM method=GET action="http://www.google.com/search"> tag.
D'OH at me for being dim.


Problem Solved

Topic Closed
Related topics
Problem with php_nuke
Google Site Map
[RESOLVED] How to have my own blogs
Google’s founders didn’t know html!
Problem with google discription for [url]http://www.poxyprox
Problem with my site.
Google Site Maps (Help you get in google)
Free google site search.
www.urbanmagicshop.com
Search Engine listing
Email problem
Google Crawler doesn't work well on my site
Google has not visited this site within the past 90 days.
Site dissapearing from first/second page only found on site:
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Webmaster and Internet -> SEO and Search Engines

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.