JohnAtkinson
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!
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Neither of these worked in IE, but the dearth of other responses tells me that it's probably impossible in IE. Thanks for responding!
ASKER