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

Q716 How can you open a window from a text link?

You are here: irt.org | FAQ | JavaScript | Window | Q716 [ previous next ]

The best approach is:

<SCRIPT LANGUAGE="JavaScript"><!--
function myVoid() { }
function myOpen() {
    windowHandle = window.open('page.htm','windowName','height=400,width=400');
}
//--></SCRIPT>

<A HREF="#" onClick="this.href = 'javascript:myVoid()';myOpen()" 

©2018 Martin Webb