You are here: irt.org | FAQ | JavaScript | Window | Q1597 [ previous next ]
Try:
<script language="JavaScript"><!-- var w=640; var h=480; if (window.screen) { w = parseInt(window.screen.availWidth * 0.80); h = parseInt(window.screen.availHeight * 0.80); } (w < 640) ? w = 640 : w = w; (h < 480) ? h = 480 : h = h; window.open('mypage.html','windowName','width='+w+',height='+h); //--></script>