JavaScript Reference/Javascript Collections — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 08:22, 26 мая 2010

"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