取得影像資訊
document.img.border
document.img.complete
document.img.height
document.img.jspace
document.img.lowsrc
document.img.src
document.img.vspace
document.img.width
可取得影像資訊
程式碼如下:
<img name="IMG" src='http://spiderdaily.wayi.com.tw/upload/images/Meone/2013/7M/0717/mi1020717_1_00_2.gif'>
<script>
document.write("height : " + document.IMG.height + "<br>");
document.write("width : " + document.IMG.width + "<br>");
document.write("source : " + document.IMG.src + "<br>");
document.write("married : " + document.IMG.married + "<br>");
</script>