Image lowsrcProperty
Image Object
Definition and Usage
The lowsrc property sets or returns the URL of a low-resolution version of an image.
Syntax
imageObject.lowsrc=URL
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the lowsrc property.
Example
Example
The following example creates a link to the low-resolution version of an image:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Rookie Tutorial (example.com)</title>
</head>
<body>
<img id="compman" src="compman.gif.html" lowsrc="compman_lowres.gif.html" alt="Computerman" width="107" height="98">
<br>
<script>
var x=document.getElementById("compman");
document.write('<a href="' + x.lowsrc + '">low resolution</a>');
</script>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>Rookie Tutorial (example.com)</title>
</head>
<body>
<img id="compman" src="compman.gif.html" lowsrc="compman_lowres.gif.html" alt="Computerman" width="107" height="98">
<br>
<script>
var x=document.getElementById("compman");
document.write('<a href="' + x.lowsrc + '">low resolution</a>');
</script>
</body>
</html>
Try it Yourself »
Image Object Other Extensions