open new configurable window using javascript


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function launch() {
  2. window.opener = null;
  3. var w = window.open("myPageToLaunch.php",""+new Date().getTime(),
  4. "resizable=yes,scrollbars=yes,status=no,width=880,height=600");
  5. if(w){
  6. window.open('','_parent','');
  7. window.close();
  8. }
  9. }
  10. </script>
  11. <body onload="launch()">

URL: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_23293464.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.