Полезная информация

JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference

Image.src Property


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


Navigator 3.0




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


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