[Javascript] how to get window dimension

BEKIM BACAJ trojani2000 at hotmail.com
Tue Dec 16 19:45:21 CST 2003


alert(document.body.clientWidth)    would do,
cheers!


>From: "Muchacho, Laurent (TWIi London)" <LMuchacho at twii.net>
>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>To: "'[JavaScript List]'" <javascript at LaTech.edu>
>Subject: [Javascript] how to get window dimension
>Date: Tue, 16 Dec 2003 14:26:51 -0000
>
>Hi
>
>Did anyone know how to get the window dimension in ie like in mozillia
>window.innerWidth, window.innerHeight, window.outerWidth, 
>window.outerHeight
>I try to alert this in IE and I get undefined for all of them
>
>Thanks
>
>
>
>DISCLAIMER - The preceding e-mail message (including any attachments)
>contains information that may be confidential, may be protected by the
>attorney-client or other applicable privileges, or may constitute 
>non-public
>information.  It is intended to be conveyed only to the designated
>recipient(s) named above.  If you are not an intended recipient of this
>message, or have otherwise received it in error, please notify the sender 
>by
>replying to this message and then delete all copies of it from your 
>computer
>system.  Any use, dissemination, distribution, or reproduction of this
>message by unintended recipients is not authorized and may be unlawful. The
>contents of this communication do not necessarily represent the views of
>this company.
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the Javascript mailing list