JavaScript Reference/Javascript Collections — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
- all
- anchors
- applets
- areas
- attributes
- behaviorUrns
- blockFormats
- boundElements
- cells
- childNodes
- children
- controlRange
- elements
- embeds
- filters
- forms
- frames
- images
- imports
- links
- mimeTypes
- namespaces
- options
- pages
- plugins 1
- plugins 2
- rows
- rules
- scripts
- styleSheets
- tBodies
Содержание
"fonts" Example
<html>
<body>
<object id="myHelper"
classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b"
width="0px"
height="0px">
</object>
<button onclick="alert(myHelper.fonts.Count);">Number of fonts in the system</button>
</body>
</html>
"fonts" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Dialog Helper |
+----------------+--------------------------------------------------------------+
"fonts" JavaScript properties and JavaScript methods
JavaScript properties and JavaScript methods
Count, item()
"fonts" Syntax Parameters and Note
Note:
Returns an array of system-supported fonts in the Dialog Helper object.
The fonts collection has the Count property instead of the length property.
Its syntax is document.all.dialogHelperID.fonts.Count = integer.
Syntax:
dialogHelperName.fonts // returns all fonts
dialogHelperName.fonts(param1) // returns an individual font
param1 Required; the zero-based index