Feedback on: irt.org FAQ Knowledge Base Q407
Technical:
Not technical enough
Comments:
Why does this work?
Comments:
Netscape 4+ will kill all animations and other stuff on a javascript link.
the following should be changed from
<A href="javascript:window.open('test.html','windowName','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=500,height=300')">test</A>
to
<A HREF="javascript:;" onClick="window.open('test.html','windowName','scrollbars,resizable,width=500,height=300'); return false">test</A>
It is the return false that does the trick...
Since if you specify one parameter, the rest are off and yes is default, the above is also shorter.
If you do not want the statusline to show javascript:;
use
<A HREF="javascript:;"
onClick="window.open('test.html','windowName','scrollbars,resizable,width=500,height=300'); return false"
onMouseOver="status='Popup test.html'; return true"
onMouseOut="status=''; return true"
>test</A>
The return true is needed to tell the browser we handled the status line...
Michel