You are here: irt.org | FAQ | JavaScript | Window | Q1395 [ previous next ]
Try:
<script language="JavaScript"><!-- function openWindow(percent) { var w = 630, h = 440; // default sizes if (window.screen) { w = window.screen.availWidth * percent / 100; h = window.screen.availHeight * percent / 100; } window.open('nextpage.htm','windowName','width='+w+',height='+h); } //--></script>