Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q616 How can I resize a child when a new image is loaded into it?

You are here: irt.org | FAQ | JavaScript | Window | Q616 [ previous next ]

Once a window is open it can only be resized in Netscape Navigator 4+ and Internet Explorer 4+:

function openWin(imagename,width,height) {
    imagewin=window.open(imagename,'imagewin','width=' + width + ',height=' +height);
    if (window.screen && document.layers) {
        window.outerWidth = width;
        window.outerHeight = height;
    }
}

©2018 Martin Webb