JavaScript Reference/Javascript Properties/longDesc
Версия от 18:30, 25 мая 2010; (обсуждение)
"longDesc" Example
<html>
<body>
<img id="myImg" src="yourimage.gif" longdesc="wbex"s Logo">
<button onclick="alert(myImg.longDesc);">Long Desc</button>
</body>
</html>
"longDesc" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<frame> <iframe> |
| |<img> |
+----------------+--------------------------------------------------------------+
"longDesc" Syntax and Note
Note:
Read and write property.
Specifies the URL that contains a element long description.
Syntax:
document.getElementById("elementID").longDesc = value
document.all.elementID.longDesc = value // IE only