View Full Version : HTML page length in pixels
12-12-2002, 08:21 PM
Many thanks in advance.
12-12-2002, 10:33 PM
IE has the document.body.scrollHeight (http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/scrollheight.asp) property
Not sure about everyone else...
12-12-2002, 10:57 PM
This is a guess - haven't tested it but it might work:
var docHeight = document.defaultView.getComputedStyle(body, '').getPropertyValue("height");
12-12-2002, 10:58 PM
12-13-2002, 01:10 AM
I use something like this on my iFRAME:
Then on the main page (outside the iFRAME):
Hope that helps!
*this would be an IE only thing. ;)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.