Image.lowsrc

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax

							image.lowsrc

Description

The lowsrc property of the Image object specifies the URL of an alternate image to use on low-resolution displays. This property can only be set by the LOWSRC attribute of the <img> tag.

Example

Listing 7.307 displays the URL of the low-resolution image.

Listing 7.307 Example of lowsrc Property
 <html> <head> <title>Example of lowsrc property</title> </head> <img name="circle" src="circle.gif" lowsrc="circle_low.gif"> <br> <script language="JavaScript"> <!-- Hide //Display the low resolution image document.write("The URL of the low resolution image is "); document.write("<i><b>",document.circle.lowsrc,"</b></i>"); //Hide End ---> </script> ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.