Published in: JavaScript
<script language="JavaScript"> var w = 300; var h = 200; resizeTo(w, h); moveTo((screen.width - w)/ 2, (screen.height - h)/ 2); </script>
You need to login to post a comment.
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.
nicolaspar on 01/19/07
2 people have marked this snippet as a favorite
Published in: JavaScript
<script language="JavaScript"> var w = 300; var h = 200; resizeTo(w, h); moveTo((screen.width - w)/ 2, (screen.height - h)/ 2); </script>
You need to login to post a comment.