blob: 702ad66bc5f03bb773e351f6372ce98b645bf4fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
---
title: Document.images
slug: Web/API/Document/images
translation_of: Web/API/Document/images
---
<div>{{APIRef("DOM")}}</div>
<p><code>document.images</code> 는 현재 HTML document 내부의 <a href="/en-US/docs/DOM/Image" title="DOM/Image">images</a> collection을 반환합니다.</p>
<h2 id="Syntax" name="Syntax">Syntax</h2>
<pre class="syntaxbox"><em>var htmlCollection</em> = document.images;</pre>
<h2 id="Example" name="Example">Example</h2>
<pre class="brush:js">var ilist = document.images;
for(var i = 0; i < ilist.length; i++) {
if(ilist[i].src == "banner.gif") {
// found the banner
}
}</pre>
<h2 id="Notes" name="Notes">Notes</h2>
<p><code>document.images.length</code> – 페이지의 이미지 갯수를 반환하는 속성</p>
<p><code>document.images </code>는 DOM HTML의 part이며, HTML documents 에서만 지원된다.</p>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('HTML WHATWG', '#dom-document-images', 'Document.images')}}</td>
<td>{{ Spec2('HTML WHATWG') }}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('DOM2 HTML', 'html.html#ID-90379117', 'Document.images')}}</td>
<td>{{ Spec2('DOM2 Events') }}</td>
<td>Initial definition.</td>
</tr>
</tbody>
</table>
|