|
Posted by Jonathan N. Little on 10/07/05 17:23
JDS wrote:
> On Thu, 06 Oct 2005 23:01:21 +0100, SpaceGirl wrote:
>
>
>><a href="mypage.html" onclick="popup('mypage.html'); return true;"
>
>
> Shouldn't that be "return false"?
>
I would think so, else if JavaScript is enabled both the popup will load
AND the main page will load 'mypage.html'. You want it to return false
so that if JavaScript is enabled the main page link will be ignored but
if JavaScript is disabled the onclick event will be ignored and the
fall back will be that 'mypage.html' loads in the main window.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|