X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Image lowsrc Property

Image Object Reference 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

Internet Explorer Firefox Opera Google Chrome Safari

The lowsrc property is supported in all major browsers.


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 Reference Image Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook