THE WORLD'S LARGEST WEB DEVELOPER SITE

Image lowsrc Property

❮ Image Object

Definition and Usage

The lowsrc property sets or returns a URL to a low-resolution version of an image.

Syntax

imageObject.lowsrc=URL

Browser Support

Property
lowsrc Yes Yes Yes Yes Yes

Example

Example

Create a link to a low-resolution version of an image:

<html>
<body>

<img id="compman" src="compman.gif"
lowsrc="compman_lowres.gif" alt="Computerman">
<br>

<script>
var x=document.getElementById("compman");
document.write('<a href="' + x.lowsrc + '">Low resolution</a>');
</script>

</body>
</html>
Try it Yourself »

❮ Image Object