<script language="JavaScript"> function pass() { window.location("next.php?width=" + screen.width + "&height=" + screen.height + "); } </script> <body onload="pass();">