[Javascript] Re: Getting frame height and width
Peter Brunone
peter at brunone.com
Thu Jun 14 14:50:10 CDT 2001
Correct; that was never in doubt. The question was how height and width
apply to a text area since, like text inputs, they tend to be measured in
characters rather than in pixels.
----- Original Message -----
From: "Rodney Myers" <rodney at aflyingstart.net>
To: <javascript at LaTech.edu>
Sent: Thursday, June 14, 2001 2:34 PM
Subject: Re: [Javascript] Re: Getting frame height and width
> clientHeight and clientWidth are assigned in pixels according to Danny G
in
> DHTML-TDR (O'Reilly)
> R
>
> phumes1 at home.com wrote:
>
> > At 02:09 PM 6/14/01 -0500, you wrote:
> > >phumes,
> > >
> > > clientHeight and clientWidth are the attributes you want...
although I'm
> > >not sure what the "other browser" uses.
> > >
> > > Are you trying to assign a width or height attribute to a
textarea?
> >
> > Yes
> >
> > >I've never done this, but even if it works, I'd guess that the textarea
is
> > >assuming the measurements are in characters rather than in pixels.
> >
> > Ah....that's not good.
More information about the Javascript
mailing list