w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

HTML DOM Image Object

« Previous Next Reference »

Image Object

The Image object represents an embedded image.

For each <img> tag in an HTML document, an Image object is created.

Notice that images are not technically inserted into an HTML page, images are linked to HTML pages. The <img> tag creates a holding space for the referenced image.


Image Object Properties

W3C: W3C Standard.

Property Description W3C
align Sets or returns the value of the align attribute of an image Yes
alt Sets or returns the value of the alt attribute of an image Yes
border Sets or returns the value of the border attribute of an image Yes
complete Returns whether or not the browser is finished loading an image No
height Sets or returns the value of the height attribute of an image Yes
href    
hspace Sets or returns the value of the hspace attribute of an image Yes
isMap Sets or returns the value of the ismap attribute of an image Yes
longDesc Sets or returns the value of the longdesc attribute of an image Yes
lowsrc Sets or returns a URL to a low-resolution version of an image No
name Sets or returns the name of an image Yes
src Sets or returns the value of the src attribute of an image Yes
useMap Sets or returns the value of the usemap attribute of an image Yes
vspace Sets or returns the value of the vspace attribute of an image Yes
width Sets or returns the value of the width attribute of an image Yes

Image Object Events

Event The event occurs when... W3C
onabort Loading of an image is interrupted Yes
onerror An error occurs when loading an image Yes
onload An image is finished loading Yes

Standard Properties, Methods, and Events

The Image object also supports the standard properties, methods, and events.


« Previous Next Reference »


Stylus Studio® XML Development Environment

stylus

Stylus Studio® 2010 XML Enterprise Suite raises the bar for productivity in XML development tools. Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive XML toolset to tackle today's advanced XML data transformation and aggregation challenges.

stylus
  • XML Pipeline Editor, Debugger and Code Generator
  • DataDirect XML Converters
  • XQuery Mapper, Editor, Debugger, and Profiler
  • XSLT Mapper, Editor, Debugger, Designer, and Profiler
  • Java and C# for .Net Code Generation
  • XML Schema Designer With Documentation Generator
  • XML Editor With Full XPath Integration

Download a free trial now



WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Cheap UK Web Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
SEO Company
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
SHARE THIS PAGE