Entry
Is this possible to determine size of page which contains scrollbars ?
Apr 6th, 2008 20:04
ha mo, Dave Clark, Colin Fraser, Marek Jakubowski,
No.. you can get the file size by downloading it, most browsers will
tell you how big the file is in KB, but if you want to look at lines..
nope.. not going to happen with Javascript.. A line count is out of the
question as lines are dependent upon resolutions, higher resolutions
will mean fewer lines, low resolutions mean lots of lines.. there is no
way of making that calculation in Javascript.. however, if you are
using linix.. that is a different story,
good luck..
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Possibly your question means something else. The following
properties will tell you the scrollable width and height of the
document:
document.body.scrollWidth
document.body.scrollHeight
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com