JavaScript의 document.embeds 속성을 사용하여 문서의
예시
다음 코드를 실행하여 JavaScript에서 document.embeds 속성을 구현할 수 있습니다.
<!DOCTYPE html>
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<embed src = "/html/yourfile.mid" width = "250" height = "100" />
<script>
var num = document.embeds.length;
document.write("<br>How many embed tags: "+num);
</script>
</body>
</html>