Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q407

Feedback on: irt.org FAQ Knowledge Base Q407

Sent by Paul Shields on July 25, 1999 at 18:00:49: - feedback #325

Technical:
Not technical enough

Comments:
Why does this work?



Sent by michel on August 10, 1999 at 04:44:28: - feedback #359

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





©2018 Martin Webb