• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The <IMG> Element

The <IMG> displays images in HTML, and, like all other HTML elements, this tag is active in HTML. You can see the properties and events of this element in Table 15.2 in overview, its properties in depth in Table 15.3, and its events in depth in Table 15.4. Note that JavaScript’s core HTML properties, methods, and events that we discussed in Chapters 5, “Using Core HTML Properties,” and 6, “Using Core HTML Methods and Events,” also apply to this element.

Table 15.2. Overview of the Properties and Events of the <IMG> Element (See Chapters 5 and 6 for the JavaScript core HTML properties, methods, and events that also apply to this element.)
Properties Events
align onabort
alt onafterupdate
border onerror
complete onerrorupdate
dynsrc onload
fileCreatedDate 
fileModifiedDate 
fileSize 
fileUpdatedDate 
galleryImg 
height 
hspace 
isMap 
longDesc 
loop 
lowsrc 
name 
nameProp 
protocol 
src 
start 
useMap 
vspace 
width 
x 
y 



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint