Link to home
Create AccountLog in
Avatar of JohnAtkinson
JohnAtkinsonFlag for United States of America

asked on

Finding an HTML document's dimensions

I'm looking for a reliable method to discover the dimensions of the current HTML document.  I need to be able to do this in both Firefox and IE.  I'm pretty sure there's no single cross-browser technique.  That's fine.

I just need to be able to do it.  

My research thus far has led me to a handful of ways to expose the dimensions of the "viewport", the viewable portion of the browser window.  That's not what I need.  I need to know the pixel dimensions of the underlying document itself.

Thanks, Experts!
SOLUTION
Avatar of Morcalavin
Morcalavin
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of JohnAtkinson

ASKER

Thanks, Morcalavin and mivlam.  I'll try these out and report.
Neither of these worked in IE, but the dearth of other responses tells me that it's probably impossible in IE.  Thanks for responding!