Sets or retrieves the font for the current selection.
Scripting Information
Command FontName execCommand vValue Required. String that specifies a legal font name, as described by the FONT attribute. Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue
C++ Information
Command group CGID_MSHTML Symbolic constant IDM_FONTNAME User interface None IOleCommandTarget::Exec parameters
pvaIn Required. VT_BSTR specifying a legal font name, as described by the FONT attribute. pvaOut VT_BSTR representing a legal font name, as described by the FONT attribute. Header file Mshtmcid.h Applies to IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus
Minimum Availability
Internet Explorer 4.0 and later