We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

Tamedo on 12/14/07


Tagged


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

vali29
sbbath
korzhik


js popup window


Published in: JavaScript 


  1. <SCRIPT LANGUAGE="JavaScript">
  2. function popUp(URL) {
  3. day = new Date();
  4. id = day.getTime();
  5. eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=500,left = 440,top = 150');");
  6. }
  7. </script>
  8. <a HREF="javascript:popUp('index.php')">Open the Popup Window</a>

Report this snippet 

You need to login to post a comment.