Re: Document size
Philip Thompson <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On Mar 4, 2008, at 9:45 AM, Martin Honnen wrote: > Pekka Vanhoja wrote: > >> Is there a way to determine the "preferred" size of an HTML >> document? I >> mean that if I have a window with scrollbars and I would like to >> determine the minimum size for the window so that the scrollbars >> would >> not be needed. > > With Mozilla > document.height > document.width > give you the dimensions of the document. Is IE any different? Can't forget about that crowd (even though I'd love to). ~Philip