HTML DOM 문서 포함
예시
문서의 <embed> 요소 수:
let num = document.embeds.length;
정의 및 사용
이 embeds
속성은 문서의 모든 <embed> 요소 컬렉션을 반환합니다.
속성 은 embeds
읽기 전용입니다.
경고
대부분의 브라우저는 더 이상 포함된 애플릿이나 플러그인을 지원하지 않습니다.
포함된 ActiveX 컨트롤은 더 이상 브라우저에서 지원되지 않습니다.
Shockwave Flash는 최신 브라우저에서도 꺼져 있습니다.
제안
사진을 삽입하려면 <img>
태그를 사용하세요.
HTML을 포함하려면 <iframe>
태그를 사용하세요.
비디오 또는 오디오를 포함하려면 <video>
또는 <audio>
태그를 사용하십시오.
또한보십시오:
통사론
document.embeds
속성
Property | Description |
length | The number of <embed> elements in the collection. |
행동 양식
Method | Description |
[index] | Returns the element with the specified index (starts at 0). Returns null if the index is out of range. |
item(index) | Returns the element with the specified index (starts at 0). Returns null if the index is out of range. |
namedItem(id) | Returns the element with the specified id. Returns null if the id does not exist. |
반환 값
유형 | 설명 |
노드 목록 | HTMLCollection . 문서의 모든 <embed> 요소. 소스 코드에 나타나는 대로 정렬됩니다. |
브라우저 지원
document.embeds
DOM 레벨 3(2004) 기능입니다.
모든 브라우저에서 완벽하게 지원됩니다.
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | 9-11 | Yes | Yes | Yes | Yes |