Re: opening a link in a new window
| From: | Ashley Sheridan | Date: | Thu, 13 May 2010 21:18:59 +0000 |
| Subject: | Re: opening a link in a new window | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305156@lists.php.net to get a copy of this message | ||
On Thu, 2010-05-13 at 17:13 -0400, David Mehler wrote:
> Hello,
> I want to open an external link in a new window, i know i can do this
> with xhtml, but only with the transitional dtd, which i'm not using. I
> was wondering if php could pull this off?
> Thanks.
> Dave.
>
No. PHP is on the server, not the client-side. If you can't use
something like target="_blank" in your xhtml, then consider using
Javascript. It's not the ideal solution, as it won't work where
scripting is disabled or not available.
Thanks,
Ash
http://www.ashleysheridan.co.uk