FAQ Topic - How do I open a new window with javascript? (2013-06-20)

11 views
Skip to first unread message

FAQ server

unread,
Jun 19, 2013, 7:00:01 PM6/19/13
to
-----------------------------------------------------------------------
FAQ Topic - How do I open a new window with javascript?
-----------------------------------------------------------------------

New windows can be opened on browsers that support the
`window.open` function and are not subject to the action of any
pop-up blocking mechanism with code such as:-

var wRef;
if(window.open){
wRef = window.open("http://example.com/page.html","windowName");
}

<URL: https://developer.mozilla.org/en/DOM:window.open>
<URL: http://www.infimum.dk/HTML/JSwindows.html>


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

--

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.

Reply all
Reply to author
Forward
0 new messages