Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Javascript / Client Side Development

FAQ Topic - How do I open a new window with javascript?


-----------------------------------------------------------------------
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:-

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

http://developer.mozilla.org/en/docs/DOM:window.open

http://www.infimum.dk/HTML/JSwindows.html

===
 Postings such as this are automatically sent once a day.  Their
 goal is to answer repeated questions, and to offer the content to
 the community for continuous evaluation/improvement.  The complete
 comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
 The FAQ workers are a group of volunteers.

In comp.lang.javascript message <4650d2f6$0$90262$14726@news.sunsite.
dk>, Sun, 20 May 2007 23:00:01, FAQ server <javascr@dotinternet.be>
posted:

>New windows can be opened on browsers that support the

                           by ?

>` window.open ` function and are not subject to the action of any
>pop-up blocking mechanism with code such as:-

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

With a space after that comma, fewer newsreaders should interpret
everything between the first and last quotes as a single URL.

ISTM worth mentioning the existence of the optional third parameter,
without giving details.

--
 (c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk  Delphi 3? Turnpike 6.05
 <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
 <URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
 <URL:http://www.borland.com/newsgroups/guide.html> news:borland.* Guidelines

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc