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?
Problem opening Google from my site
| 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 ?
I don't think Google alow you to modify their code.
| 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)
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.
just a thought.
Have a search link that opens in a new page with the Google search on it.
haha thats what i just said lol
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..
if you post your codes l think u can get help.
thanks..
<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
<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
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.
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.
| 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
