Re: pop-up problem
| From: | Ernest E Vogelsinger | Date: | Tue, 11 Mar 2003 20:37:37 +0000 |
| Subject: | Re: pop-up problem | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139176@lists.php.net to get a copy of this message | ||
At 21:02 11.03.2003, -{ Rene Brehmer }- said:
--------------------[snip]--------------------
>On Mon, 20 Jan 2003 21:48:22 +0000, Sean Burlington wrote about "Re: [PHP]
>pop-up problem" what the universal translator turned into this:
>
>>I would do
>>
>><a href="foo.php" target="Foo"
>>onclick="window.open('foo.php', 'Foo',
>> 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return
>> false;">Click Here</a>
>>
>>as this will still work on non-js browsers - albeit without being able
>>to size/position the window.
>
>But you'd also get the same page in two windows ... one with dressing, one
>without. Atleast in IE ... it runs both the href code, and the onclick
>code ... when the JIT is enabled.
>
>On browsers where the JIT is disabled, only HREF is executed.
--------------------[snip]--------------------
No - if the onClick handler returns false, nothing will happen. That's the
original reason for the onClick handler to be there - it can take control
if a link is actually performed or not.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/