JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Image.src Property

Name

Image.src Property---URL of the embedded image

Availability

Navigator 3.0

Synopsis

image.src

Description

The src property of the Image object is a read/write string that specifies the URL of the image to be displayed by the browser. The initial value of this property is specified by the SRC attribute of the <IMG> tag.

When you set this property to the URL of a new image, the browser will load and display that new image (or, on low-resolution systems, the image specified by the lowsrc property). This is very useful for updating the graphical appearance of your web pages in response to user actions, and can also be used to perform crude animation.

See Also

"Image"


Previous Home Next
Image.onload() Book Index Image.vspace

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
This HTML Help has been published using the chm2web software.