HTML DOM longDesc Property
Complete Image Object Reference
Definition and Usage
The longDesc property sets or returns a URL to a document containing a
description of the image.
This description is a supplement to the "alt" attribute, and it can
be useful for
non-visual user agents.
Syntax
Example
The following example creates a link to the description of the image:
<html>
<body>
<img id="compman" src="compman.gif"
longdesc="compman_description.htm" alt="Computerman" />
<br />
<script type="text/javascript">
var x=document.getElementById("compman");
document.write("Description for image: ");
document.write('<a href="' + x.longDesc + '">Description</a>');
</script>
</body>
</html>
|
Try-It-Yourself Demos
Create a link to the long description of an image
Complete Image Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|