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

Q1202 How do you resize the page according to the display size and kind of browser is being used?

You are here: irt.org | FAQ | JavaScript | Screen | Q1202 [ previous next ]

Try:

<script language="JavaScript"><!--
if (document.layers) {
     w = window.innerWidth;
     h  = window.innerHeight;
}
if (document.all) {
     w = document.body.clientWidth;
     h = document.body.clientHeight;
}

if (document.all || document.layers) {
   window.moveTo(0,0);
   window.resizeTo(w,h);
}
//--></script>

Feedback on 'Q1202 How do you resize the page according to the display size and kind of browser is being used?'

©2018 Martin Webb