Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Window | Q716 [ previous next ]

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

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()" 

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.