Re: can Header open in a new window?
| From: | Richard Davey | Date: | Thu, 23 Dec 2004 12:33:15 +0000 |
| Subject: | Re: can Header open in a new window? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205072@lists.php.net to get a copy of this message | ||
Hello Angelo,
Thursday, December 23, 2004, 11:47:03 AM, you wrote:
AZ> I have a PHP script that uses a header("Location:
AZ> http://" . $href);
AZ> statement that redirects to another page. The problem I have
AZ> is that I need this new page to open up in a new window, as the PHP is
AZ> being called from an IFrame. Is there a way the Header statement can do
AZ> it? or is the header statement the incorrect way to perform this
AZ> function?
It's not an incorrect way, it just won't work. The headers don't
control browser behaviours like this - the opening in a new window is
a browser level function, i.e. something defined by an href target, etc
which the browser should (but will not always) adhere to.
The only way I could think of would be to write out some client side
script to make a new window open (JavaScript, etc)
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde