<script language=javascript>
function window.onload()
{
var w = document.body.scrollWidth;
var h = document.body.scrollHeight;
if (w > 400)
w = 400;
if (h > 400)
h = 400;
window.resizeTo(w,h);
}
</script>
otherwise, you need to do it in the parent page:
<script>
var win = window.open("TestOpen2.html");
setTimeout("resizeChild()", 1000);
function resizeChild()
{
if (win != null && !win.closed)
{
if (win.document.readyState == "complete")
{
var w = win.document.body.scrollWidth;
var h = win.document.body.scrollHeight;