Re: using javascript to get a style's current value
by =?iso-8859-1?Q?Josu=E9?= Figueira Machado <jmachado(at)mindspring.com>
|
Date: |
Wed, 29 Jan 2003 12:18:23 -0500 |
To: |
"Jason Van Pelt" <jvanpelt(at)integralpro.com>, <hwg-style(at)hwg.org> |
In-Reply-To: |
|
|
todo: View
Thread,
Original
|
|
Try:
currentHeight =3D document.getElementById('box').style.height;
HTH,
Josu=E9
At 10:47 AM 1/29/2003 -0600, Jason Van Pelt wrote:
>hi there...
>
> if i've got <div id=3D"box"....> and in the style box's height is
>set to 100px; i want a javascript function to say var currentHeight =3D
>box.style.height.value; this javascript syntax, isn't right, i know.
>does anyone know what IS correct?
>
>thanks,
>
>jvanpelt
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA