Javascript Reference
Categories: IMG

javascript IMG Description

@March 15, 2008, 1:22 a.m.
imgFirefox/Netscape/NN 3 IE 4 Chrome/Safari/DOM 1  

  

The img object reflects the img element. This object shares the same properties as the static Image object, which you can use to pre-cache images without rendering them on the page.

 
HTML Equivalent
 
<img>
 
Object Model Reference
 
[window.]document.imageName
[window.]document.images[i]
[window.]document.images["imageName"]
[window.]document.getElementById("elementID")
 
Object-Specific Properties
 
alignaltbordercomplete
dataFlddataFormatAsdataSrcdynsrc
fileCreatedDatefileModifiedDatefileSizefileUpdatedDate
heighthrefhspaceisMap
longDesclooplowsrclowSrc
mimeTypenamenamePropnaturalHeight
naturalWidthprotocolprototypesrc
startuseMapvspacewidth
xy
 
Object-Specific Methods

None.

 
Object-Specific Event Handler Properties
 
EventsIE WindowsIE MacFirefox/Netscape/NNW3C DOM
onabort4432
onerror4432
onload443n/a

Powered by Linode.