queryCommandValue()

This method will return the value associated with the command. That is, it can be used to get the properties of an element or statement such as style sheet properties (fonts, colors and such).

syntax:

queryCommandValue()

This method is used with the following:

document
textRange