The image Object

The last Web browser object to discuss in this chapter is the image object. One image object is created in a document by each <img/> element on the page. These objects are referenced through an image's object array; the object's array has a length property that you can use to find out how many images are present. Table 19.9 shows some of the other properties and events associated with the image object.

Table 19.9. XHTML image Object Properties and Events
Property What It Contains
border The value of the border attribute
complete Indicates whether the image has been completely loaded
height The value of the height attribute
hspace The value of the hspace attribute
lowsrc The value of the lowsrc attribute
name The value of the ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.