Tuesday, May 24, 2011

Javascript window.open : opening a new window and call a URL

function open_new_window(URL)
   {  
   NewWindow = window.open(URL,"_blank","toolbar=no,menubar=0,status=0,copyhistory=0

                                                    ,scrollbars=yes,resizable=1,location=0,Width=1500,Height=760") ;
   NewWindow.location = URL;
   }


open_new_window('http://www.google.com');

Reference:
http://www.javascript-coder.com/window-popup/javascript-window-open.phtml

No comments: