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

Q1353 Is it possible to alter seperately the window vertical or horizontal size?

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

After the <body> tag try width:

<body>

<script language="javascript"><!--
if (document.layers)
    window.innerWidth = 415;
else if (document.all) {
    window.top.resizeBy(415-window.top.document.body.clientWidth,0);
}
//--></script>

and height:

<body>

<script language="javascript"><!--
if (document.layers)
    window.innerHeight = 415;
else if (document.all) {
    window.top.resizeBy(0,415-window.top.document.body.clientHeight);
}
//--></script>

©2013 Martin Webb

ArticlesFAQsGamesFeedback

FOLDOCRFCsInstant JavaScriptSoftwareBooksJavaScript Programmer's ReferenceAboutTop