RE: [PHP] Opening a Window with JavaScript
| From: | Brenton Dobell | Date: | Wed, 16 Jul 2003 23:23:52 +0000 |
| Subject: | RE: [PHP] Opening a Window with JavaScript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155503@lists.php.net to get a copy of this message | ||
I also know with the javascript open window, you can force the print window
to popup, what do you have to add to this link below??
Thanks
-----Original Message-----
From: Aaron Gould [mailto:webdevel@partscanada.com]
Sent: Thursday, July 17, 2003 3:48 AM
To: Curt Zirzow; php-general@lists.php.net
Subject: Re: [PHP] Opening a Window with JavaScript
Try this (note the "return false;" addition at the end):
<a href="legal.php" onClick="MM_openBrWindow('this.href', '',
'toolbar=no,
status=yes, scrollbars=no, resizable=no, width=790, height=600'); return
false;">
--
Aaron Gould
Web Developer
Parts Canada
----- Original Message -----
From: "Curt Zirzow" <curt@zirzow.dyndns.org>
To: <php-general@lists.php.net>
Sent: Wednesday, July 16, 2003 2:15 PM
Subject: Re: [PHP] Opening a Window with JavaScript
> Todd Cary <todd@aristesoftware.com> wrote:
> > [...]
> > However, if I use an anchor, the form is submitted. Is there a way to
> > prevent this? Here is the code I tried:
> >
> > <a href="#" onClick="MM_openBrWindow('legal.php',
> > '', 'toolbar=no,
> > status=yes, scrollbars=no, resizable=no, width=790, height=600')";">
>
> I believe you can put something like (not tested):
> <a href="javascript:MM_openBrWindow('legal.php', '',
> 'toolbar=no,
> status=yes, scrollbars=no, resizable=no, width=790, height=600')";">
>
> >
> > Todd
> > --
>
> Curt
> --
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php