Javascript Reference
Categories: Dialog Helper

javascript Dialog Helper fonts

@March 15, 2008, 1:22 a.m.
fontsFirefox/Netscape/NN n/a IE 6 Chrome/Safari/DOM n/a  

Read-only  

Returns a collection of plain-language names of system fonts. Unlike other IE collections, to read the number of items, you must access its Count property, rather than length property. The names of items returned are strings, such as "MS Sans Serif" and "Verdana". Access each item in the collection via the collection's item( ) method.

 
Example
 
var fontList = dlgHelper.fonts;
var fontNames = new Array( );
for (var i = 0; i < fontList.Count; i++) {
    fontNames [fontNames .length]= fontList .item(i);
}
 
Value

Array of strings

 
Default

Implementation-dependent.


Powered by Linode.