Click to Rate and Give Feedback
MSDN
MSDN Library
HTMLImageElement Prototype

Defines the properties and methods inherited by objects in the HTMLImageElement prototype chain.

Syntax

HTMLN/A
ScriptingHTMLImageElement.prototype

Members Table

The following table lists the members exposed by the HTMLImageElement Constructor object.

Attributes/Properties

AttributePropertyDescription
ALIGNalign Sets or retrieves how the object is aligned with adjacent text.
ALTalt Sets or retrieves a text alternative to the graphic.
complete Retrieves whether the object is fully loaded.
DATAFLDdataFld Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object.
DATAFORMATASdataFormatAs Sets or retrieves the rendering format for the data supplied to the object.
DATASRCdataSrc Sets or retrieves the source of the data for data binding.
DYNSRCdynsrc Sets or retrieves the address of a video clip or VRML world to display in the window.
fileCreatedDate Retrieves the date the file was created.
fileModifiedDate Retrieves the date the file was last modified.
fileSize Retrieves the file size.
fileUpdatedDate Retrieves the date the file was last updated.
HEIGHTheight Gets or sets the height of the object.
HREFhref Sets or retrieves a destination URL or an anchor point.
HSPACEhspace Sets or retrieves the horizontal margin for the object.
ISMAPisMap Sets or retrieves whether the image is a server-side image map.
longDesc Gets or sets a Uniform Resource Identifier (URI) to a long description of the object.
LOOPloop Sets or retrieves the number of times a sound or video clip will loop when activated.
LOWSRClowsrc Sets or retrieves a lower resolution image to display.
NAMEname Gets or sets the name of the object.
nameProp Retrieves the file name specified in the href or src property of the object.
protocol Sets or retrieves the protocol portion of a URL.
SRCsrc Sets or retrieves a URL to be loaded by the object.
startstart Sets or retrieves when a video clip file should begin playing.
USEMAPuseMap Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
vrml Sets or retrieves the URL of the virtual reality modeling language (VRML) world to be displayed in the window.
VSPACEvspace Sets or retrieves the vertical margin for the object.
WIDTHwidth Sets or retrieves the calculated width of the object.

Events

EventEvent PropertyDescription
abortonabort Fires when the user aborts the download.
erroronerror Fires when an error occurs during object loading.
loadonload Fires immediately after the client loads the object.

Styles

Style attributeStyle propertyDescription
borderborder Sets or retrieves the properties to draw around the object.

Remarks

For more information on this and other DOM Prototypes , see Document Object Model Prototypes, Part 1: Introduction.

This prototype derives from the Element Constructor.

Applies To

IMG

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker