The height and width Properties


The height and width Properties

The height and width properties correspond to the HEIGHT and WIDTH HTML attributes of elements that support these attributes. You can see the support for these properties in Table 5.24.

Table 5.24. The height and width Properties

Property

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

height

   

x

x

   

x

x

x

x

 

Read/Write

 

Type: Integer or percentage

These properties are measured in pixels or percentages, just as their corresponding HTML attributes. You can read themor write themin JavaScript.

Tip

Note that the height and width properties are not the same as the height and width properties set with an element's style property.




Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net