RE: [PHP] how to popup a new browser window from php
| From: | Brian McGarvie | Date: | Fri, 19 Apr 2002 12:48:25 +0000 |
| Subject: | RE: [PHP] how to popup a new browser window from php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93680@lists.php.net to get a copy of this message | ||
add this to the <head> section;
<script language="JavaScript">
function popupcontent(urll)
{
window.open(urll,'popup','toolbar=no,location=no,directories=no,status=n
o,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,width=400,height
=250');
}
//-->
</SCRIPT>
then use the following to open a window however ya want it to appear;
<a
href=\"javascript:popupcontent('announcements.php?action=view&thisone=$i
d')\"><b>$title</b></a>
works nicely :)
-----Original Message-----
From: Erik Price [mailto:pricee@hhbrown.com]
Sent: 19 April 2002 1:39 PM
To: php-general@lists.php.net
Subject: Re: [PHP] how to popup a new browser window from php
On Friday, April 19, 2002, at 12:48 AM, Jason Wong wrote:
> On Friday 19 April 2002 07:14, Wo Chang wrote:
>> Dear All,
>>
>> One simple question:
>>
>> Is there any easy way to popup a new browser from PHP
>> without using any Javascript?
>
> No.
What about target="_blank" ? I didn't think this was JavaScript, but
achieves the same effect. Or is it JavaScript?
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
pricee@hhbrown.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php