JavaScript Reference/Javascript Collections/embeds
Версия от 18:30, 25 мая 2010; (обсуждение)
Содержание
"embeds" Example
<html>
<body>
<!-- Body content with some embed objects -->
<input type="button"
value="Retrieve the number of embeds in this document"
onclick="alert(document.embeds.length);">
</body>
</html>
"embeds" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |document |
+----------------+--------------------------------------------------------------+
"embeds" JavaScript properties and JavaScript methods
JavaScript properties and JavaScript methods
item(), length, namedItem(), tags(), urns()
"embeds" Syntax Parameters and Note
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.