Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Screen | Q1202 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.