Javascript - Simple popup resize


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



Copy this code and paste it in your HTML
  1. <script language="JavaScript">
  2. var w = 300;
  3. var h = 200;
  4. resizeTo(w, h);
  5. moveTo((screen.width - w)/ 2, (screen.height - h)/ 2);
  6. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.