JavaScript Reference/Javascript Collections/embeds
Содержание
"embeds" Example
<source lang="javascript">
<html> <body>
<input type="button"
value="Retrieve the number of embeds in this document" onclick="alert(document.embeds.length);">
</body> </html>
</source>
"embeds" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |document | +----------------+--------------------------------------------------------------+
</source>
"embeds" JavaScript properties and JavaScript methods
<source lang="javascript">
JavaScript properties and JavaScript methods
item(), length, namedItem(), tags(), urns()
</source>
"embeds" Syntax Parameters and Note
<source lang="javascript">
Note: Returns an array of all <embed> elements in a document.
Syntax:
document.embeds // returns all embed elements document.embeds(param1, param2) // returns an individual embed element
param1 Required; zero-based index or the desired member"s id or name attribute. param2 Optional; zero-based index for the result returned if param1 matches more than one element. </source>