...

View Full Version : Can I launch new browser window from redirect tag?



Fred
01-16-2003, 03:28 PM
Is it possible to get a new browser window to be launched from a redirect tag? I have one javascript popup for my AutoFollowup script by Jason Silvers.

<input type="hidden" name="redirect" value="http://www.cyberserious.com/download.htm">

What I would like to accomplish is for this page to load in a new browser window instead of the same window.

using ..."http://www.cyberserious.com/download.htm" target="new"> doesn't work. The browser simply ignores this command and loads to the same window.

Fred

Spookster
01-16-2003, 04:39 PM
In your form tag:

<form .......... target="_blank">

Fred
01-16-2003, 04:48 PM
target="_blank"> didn't work. It still loads to the same popup window.

Fred

Spookster
01-16-2003, 06:59 PM
There must be something else wrong with your code then. Putting target="_blank" inside your form tag will return the results into a new window.

Post your form code.

Fred
01-16-2003, 09:21 PM
<form action="http://www.cyberserious.com/cgi-bin/auto_followup.pl" method="post" align="left">
<div align="center">
<tr>
<td align="middle">
<div align="center">
<center>
<div align="center">
<input type="hidden" name="product" value="netdet">
<input type="hidden" name="remind" value="ON">
<input type="hidden" name="newsletter" value="ON">
<input type="hidden" name="redirect" value="http://www.cyberserious.com/download.htm target="_blank">
<table cellspacing="0" border=1 cellpadding="12" width="277">
<tr>
<td align="middle">
<div align="center">
<center>
<table cellspacing="0" cellpadding="0" border="0" width="241">
<tr align="middle">
<td valign="center" noWrap align="right">
<div align="left"><font face="Arial, Helvetica, sans-serif"><b>Your
Name: </b></font></div>
</td>
<td align="left">
<div align="center">
<input name="name" size="25">
</div>
</td>
</tr>
<tr align="middle">
<td valign="center" noWrap align="right">
<div align="left"><font face="Arial, Helvetica, sans-serif"><b>Your
Email: </b></font></div>
</td>
<td align="left">
<div align="center">
<input name="email" size="25">
</div>
</td>
</tr>
<tr align="middle">
<td valign="center" align="middle"colspan="2">
<div align="center">
<center>
<p><font size="2"><br>
<input type="submit" value="Submit" style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt" name="submit">
<br>
</font>
</center>
</div>
</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</div>
</center>
</div>
</td>
</tr>
</div>
</form>

redhead
01-16-2003, 09:26 PM
ok, instead of putting target blank in that hidden field take it right out of their and put it in the actual <form> tag, like this:

<form action="http://www.cyberserious.com/cgi-bin/auto_followup.pl" method="post" align="left" target="_blank">

:thumbsup:

Fred
01-17-2003, 12:20 AM
Redhead,
I just tried your suggestion and it works!

Thank you,
Fred

Spookster
01-17-2003, 05:45 AM
I could have sworn that's what I said earlier. :)

Fred
01-17-2003, 02:34 PM
Yes now that I realize it, that's what you said earlier. I was confused by

"<form .......... target="_blank">"

<form action="http://www.cyberserious.com/cgi-bin/auto_followup.pl" method="post" align="left" target="_blank">

I was putting it in the wrong place earlier.

Fred

Fred
01-18-2003, 03:18 PM
Spookster,
What is the piece of html code that automatically clears out the form fields on a page, such a name & email address, immediately after the visitor has filled them in then clicks SUBMIT?
Fred

<form action="http://www.cyberserious.com/cgi-bin/auto_followup.pl" method="post" align="left" onclick=clicked(); target="_blank">
<div align="center">
<input type="hidden" name="product" value="netdet">
<input type="hidden" name="remind" value="ON">
<input type="hidden" name="newsletter" value="ON">
<input type="hidden" name="redirect" value="http://www.netdetectivesoftware.com/download.htm">
<table cellSpacing="0" border=1 cellPadding="12" width="277">
<tr>
<td align="middle">
<div align="center">
<center>
<table cellSpacing="0" cellPadding="0" border="0" width="241">
<tr align="middle">
<td vAlign="center" noWrap align="right">
<div align="left"><font face="Arial, Helvetica, sans-serif"><b>Your
Name: </b></font></div>
</td>
<td align="left">
<input name="name" size="20">
</td>
</tr>
<tr align="middle">
<td vAlign="center" noWrap align="right">
<div align="left"><font face="Arial, Helvetica, sans-serif"><b>Your
Email: </b></font></div>
</td>
<td align="left">
<input name="email" size="20">
</td>
</tr>
<tr align="middle">
<td vAlign="center" align="middle"colSpan="2">
<div align="center">
<center>
<p><font size="2"><br>
<input type="submit" value="Submit" style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt">
<br>
</font>
</center>
</div>
</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</div>
</form>


--------------------------------------
http://www.cyberserious.com

redhead
01-18-2003, 05:30 PM
javascript can only make that happen before the form has been sent, 'coz after its been sent your on a differant page... and if you made them blank before it sends the form, there will be no data in the form...

Fred
01-18-2003, 05:53 PM
I guess then, it's not a problem that the visitor's information remains in the boxes. I figured some people might think their submission didn't go through, if they still see their name and email in the boxes, and might resubmit by mistake.

Thank you,
Fred



----------------------------------------------------
http://www.internet-marketing-ideas.com



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum