JavaScript Reference/Javascript Collections/applets — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
Содержание
"applets" Example
<html>
<body>
<input type="button"
value="Retrieve the number of applets in this document"
onclick="alert(document.applets.length);"><br>
</body>
</html>
"applets" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |document |
+----------------+--------------------------------------------------------------+
"applets" JavaScript properties and JavaScript methods
JavaScript properties and JavaScript methods
item(), length, namedItem(), tags(), urns()
"applets" Syntax Parameters and Note
Note:
Returns an array of all <applet> elements in the document.
Syntax:
document.applets // returns all applets
document.applets(param1, param2) // returns an individual applet
param1 Required; zero-based index or
desired member"s id or name attribute.
param2 Optional; zero-based index if param1 matches more than one element.