full width of the browser including borders
<script>document.write(document.body.offsetWidth);</script>

inside with of the browser document
<script>document.write(document.body.clientWidth);</script>


Steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ryan Sabir
Sent: Monday, August 30, 2004 1:29 PM
To: CFAussie Mailing List
Subject: [cfaussie] OT: javascript document width


Hi all,

Anybody know how I can determine the width of the current document
using javascript? There are plenty of ways to determine the width of
the current window.. but I have a horizontally scrolling document that
I want to find the width of... I know it's around 60,000 pixels wide
at the moment, but I need an exact figure at runtime.

any ideas?

thanks

-----------------------
Ryan Sabir
Newgency Pty Ltd
2a Broughton St
Paddington 2021
Sydney, Australia
Ph (02) 9331 2133
Fax (02) 9331 5199
Mobile: 0411 512 454
http://www.newgency.com/index.cfm?referer=rysig


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to