View Full Version : Html google search, open in new tab

06-01-2012, 05:07 PM

I'm new to coding and am currently trying to put together a simple intranet at our company. I've been able to get the following code for a google search to work but have been unable to get the search box input results to open in a new tab.

<form method="get" action="http://www.google.com/search">
<table border="0" cellpadding="0">
<input type="text" name="q" size="80" maxlength="255" value="" />
<input type="submit" value="Google Search" / target="_blank"></td></tr>
<tr><td align="center" style="font-size:75%">

Any suggestions? I know that "_blank" works for when you want to open an href in a new window or tab but I'm at a loss for doing it with variables generated by a search.



06-01-2012, 09:35 PM
You should be able to do the same thing inside of the form like this

<form method="get" action="http://www.google.com/search" target="_blank">

Let me nkow

06-28-2012, 03:04 PM
Sorry about the delayed response, project got side tracked by an exchange server catastrophe. That code worked though, thanks a bunch!!