HTML DOM longDesc Property

Definition and Usage

The longDesc property can set or return the URL of a document that contains a description of the iframe content.

Tip:Please use this attribute for browsers that do not support frames.

Syntax

iframeObject.longDesc=URL

Example

The following example creates a link to a description page:

<html>
<body>
<iframe src="frame_a.htm" id="frame1"
longdesc="frame_description.htm"></iframe>
<br />
<script type="text/javascript">
x=document.getElementById("frame1");
document.write("Description for frame contents: ")
document.write('<a href="') x.longDesc + '">Description</a>');
</script>
</body>
</html>