win95progman has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Opening an offsite page in a new window while redirecting the current window.

Replies are listed 'Best First'.
Re: Opening an offsite page in a new window while redirecting the current window.
by metadoktor (Hermit) on Jan 22, 2002 at 16:44 UTC
    Yes, fuzzysteve is correct. You'll have to end up using JavaScript. See the Netscape documentation on JavaScript for more information.

    You should be able to achieve your goal using:

    <html> <head> <script> newWin=window.open ("http://www.someothersite.org","TheTitle","tool +bar=yes,scroll+bars=yes") self.location="http://www.mynewurl.com" </script> </head> </html>
    However, creating new windows is a very evil deed indeed.
Re: Opening an offsite page in a new window while redirecting the current window.
by fuzzysteve (Beadle) on Jan 22, 2002 at 13:52 UTC
    much as I hate to say it, this is probably more suited to something like javascript.
    Theres not much you can do to control a users browser with perl, other than send http headers.
    Javascript on the other hand lets you do stuff client side. such as set the locatio of the current page (thus causing a new page to be loaded) when a link that open someone else's page in a new window is clicked (target=new)
Re: Opening an offsite page in a new window while redirecting the current window.
by Anonymous Monk on Aug 01, 2002 at 16:52 UTC
    sdfdsafdsfdsafsda

    Originally posted as a Categorized Answer.

Re: Opening an offsite page in a new window while redirecting the current window.
by Anonymous Monk on Mar 26, 2003 at 11:04 UTC

    Re: Opening an offsite page in a new window while redirecting the current window.

    Originally posted as a Categorized Answer.