IMG

The img object is reflective of the funcitonality of the IMG Html element, which is used to specify an image to be displayed within your document. Notice the huge list of properties available for this object, making it a very versatile and easy to use addition to the DOM specifications.

DOM Reference

Internet Explorer

window.document.imageName
window.document.images[n]
window.document.all.elementID

Netscape Navigator

window.document.imageName
window.document.images[n]

The properties of the IMG object are:

align
alt
border
className
complete
dataFld
dataSrc
docuemnt
dynSrc
height
href
hspace
id
isMap
isTextEdit
lang
language
loop
lowsrc
name
offsetHeight
offsetLeft
offsetParent
offsetTop
offsetWidth
outerHtml
outerText
parentElement
parentTextEdit
prototype
readyState
sourceIndex
src
start
style
tagName
title
useMap
vspace
width
X
Y

The Methods of the IMG object are:

blur()
click()
contains()
focus()
getAttribute()
insertAdjacentHtml()
insertAdjacentText()
removeAttribute()
scrollIntoView()
setAttribute()

The Collections and Arrays for the IMG object are:

all [ ]
children [ ]
filters [ ]

The Event Handlers for the IMG object are:

onAbort
onAfterUpdate
onBeforeUpdate
onBlur
onChange
onClick
onDataAvailable
onDataSetChanged
onDataSetComplete
onDblClick
onDragStart
onError
onFilterChange
onFocus
onHelp
onKeyDown
onKeyPress
onKeyUp
onLoad
onMouseDown
onMouseMove
onMouseOut
OnmouseOver
onMouseUp
onResize
onRowEnter
onRowExit
onScroll
onSelectStart