HTML DOM longDesc ਪ੍ਰਤੀਯੋਗਿਤਾ

ਪਰਿਭਾਸ਼ਾ ਅਤੇ ਵਰਤੋਂ

longDesc ਪ੍ਰਤੀਯੋਗਿਤਾ ਨੂੰ ਸੈਟ ਕਰ ਸਕਦੇ ਹਨ ਜਾਂ ਇਸ ਦਾ ਪਤਾ ਲਗਾ ਸਕਦੇ ਹਨ ਜੋ ਇਫਰੇਮ ਦੇ ਸਮਗਰੀ ਦੀ ਵੇਰਵੇ ਨੂੰ ਦਰਸਾਉਂਦੀ ਹੈ।

ਸੁਝਾਅ:ਫਰੇਮ ਨਹੀਂ ਸਮਰੱਥ ਬਰਾਉਜ਼ਰ ਵਿੱਚ ਇਸ ਪ੍ਰਤੀਯੋਗਿਤਾ ਦੀ ਵਰਤੋਂ ਕਰੋ。

ਗਿਆਨ ਪ੍ਰਕਿਰਿਆ

iframeObject.longDesc=URL

ਉਦਾਹਰਣ

ਹੇਠ ਦੇ ਉਦਾਹਰਣ ਵਿੱਚ ਇੱਕ ਵੇਰਵੇ ਪੰਨੇ ਵੱਲ ਇੱਕ ਲਿੰਕ ਬਣਾਇਆ ਗਿਆ ਹੈ:

<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>