简单教程
提交运行
代码编辑器:
<img id="compman" src="/static/i/img3.jpg" longdesc="/static/media/html/description.html" alt="Computerman" width="107" height="98"> <br> <p>longdesc属性的值为: <script> var x=document.getElementById("compman"); document.write(document.getElementById("compman").longDesc); </script> </p>
运行结果: