Latest web development tutorials

HTML DOM Image lowsrc property

Image Object Reference Image Object

Definition and Usage

lowsrc property sets or returns the low-resolution version of the image URL.

grammar

imageObject.lowsrc=URL


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support lowsrc property


Examples

Examples

The following example creates a low resolution version of the image points to the link:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>本教程(w3big.com)</title>
</head>
<body>

<img id="compman" src="compman.gif" lowsrc="compman_lowres.gif" alt="Computerman" width="107" height="98">
<br>
<script>
var x=document.getElementById("compman");
document.write('<a href="' + x.lowsrc + '">低分辨率</a>');
</script>

</body>
</html>

try it"


Image Object Reference Image Object