codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  google search results in a new window?  sharky at 20:10 on Sunday, August 31, 2003
 

hello i want to use the code which is offered by google for putting a google search on any website. how can i make the results open in a new page?

heres the code


<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.de/search">
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.de">
<IMG SRC="http://www.google.de/logos/Logo_40wht.gif" border="0"
ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT TYPE=hidden name=hl value=de>
<INPUT type=submit name=btnG VALUE="Google Search">
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->


  Re: google search results in a new window?  Troy Wolf at 03:28 on Monday, September 01, 2003
 

Simply add "target=_blank" to the form tag like so:

<FORM target=_blank method=GET action="http://www.google.de/search" ID="Form1">

Web Hosting and Website Development from Shiny Solutions
http://www.ShinySolutions.com
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: google search results in a new window?  Jeff Anderson at 06:24 on Monday, September 01, 2003
 

Troy - are you certain that works? I seem to remember trying that some years back and it not working, but I could be mistaken.

  Re: google search results in a new window?  sharky at 11:06 on Monday, September 01, 2003
 

i tested it and it works. but i use it as my signature in a forum and there it unfortunately doesnt work. well..sometimes it does and sometime it doesnt. it depends on the layout the user has selected.

  Re: google search results in a new window?  Jeff Anderson at 11:11 on Monday, September 01, 2003
 

OK Thanks sharky. You learn new something every day! Perhaps the forum has some kind of html filter on or something.

  Re: google search results in a new window?  Troy Wolf at 13:54 on Monday, September 01, 2003
 

I almost always test my solutions before posting unless I'm positive the solution works without testing. (Of course even when I'm sure, I'm sometimes wrong!)

The alternative to "target=_blank" is much more involved. You would have to:

o use javascript to open a new window
o use javascript to re-write your form to the new window
o use javascript to submit() the form in the new window

Glad I could help, sharky.
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: google search results in a new window?  mai at 14:09 on Saturday, August 30, 2008
 

hello i want to use the code which is offered by google for putting a google search on my website to. how can i make the results open in a new page in a specified area?










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Cadenas.CoCreate.FTI.IMSI.CADCAM.DELCAM.GMI.PLAXIS
•  Cadenas.CoCreate.FTI.IMSI.CADCAM.DELCAM.GMI.PLAXIS
•  Schlumberger.PTC.Siemens.EDS.CATIA.CIMATRON.AUTODESK
•  PDMS.Plate.UGS.CYME.FLOMERICS.Tanner.LINUX.MAC.UNIX
•  Tanner.CrossLight.Elite.Software.Geocentrix.FLOW.3D.PTC.
•  ITTVIS.ENVI.Leica.Erdas.LEAP.SOFTWARE.MapInfo.Nobeltec.
•  Re: Cracked software ftp download 2013
•  Re: Crack Engineering Software
•  Full engineering software


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2013