javascript images attribute


  Translation results:

英[ˈɪmɪdʒ] 美[ˈɪmɪdʒ]

n. Image; portrait; concept, intention; mirror, image

vt. Reflection; imagination; image of...; symbol

Third person singular: images Plural: images Present participle: imaging Past tense: imaged Past participle: imaged

javascript images attributesyntax

Function: Returns references to all Image objects in the document.

Syntax: document.images[]

Comments: For compatibility with level 0 DOM, this collection does not include tags marked by <object> defined image.

javascript images attributeexample

<html>
<body>
<img border="0" src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" />
<br />
<img border="0" src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" />
<br /><br />

<script type="text/javascript">
document.write("本文档包含:" + document.images.length + " 幅图像。")
</script>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A