[Javascript] Re: Getting frame height and width
Rodney Myers
rodney at aflyingstart.net
Thu Jun 14 15:40:49 CDT 2001
clientHeight and clientWidth are style properties that may be applied to a
textarea according to Danny Goodman, that was my point. Perhaps you were
thinking of them also applying to the window object.
Rodney
Peter Brunone wrote:
> 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>
>
>
> > 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.
>
--
Shop at ssistant Add-ons and Developer Workshops
http://www.aflyingstart.net/addons/
Enquiries regarding Shop at ssistant Classic training :
Call 01256 880770
Rodney Myers
Based in Oxford, England
Technical Director, Shop at ssistant eCommerce Solutions
More information about the Javascript
mailing list