Section D.1. The Command System


D.1. The Command System

Access to these commands is through a set of document and (in IE only) TexTRange object methods that are described in Chapter 2. These commands and syntax are:

 execCommand("commandName"[, UIFlag[, value]]) queryCommandEnabled("commandName") queryCommandIndeterm("commandName") queryCommandState("commandName") queryCommandSupported("commandName") queryCommandText("commandName") 

This appendix focuses on the commands and values that may be applied to the execCommand( ) method (the commands may also be applied to the other methods).

Because Microsoft's scope includes both the document and TexTRange object, the list of commands in that environment is much larger than those implemented to date in the Mozilla and Opera browsers. Although there are many commands (listed later in this appendix) that are implemented across all browsers, such cross-browser commands may have additional powers in IE when applied to a Textrange object.




Dynamic HTML. The Definitive Reference
Dynamic HTML: The Definitive Reference
ISBN: 0596527403
EAN: 2147483647
Year: 2004
Pages: 120
Authors: Danny Goodman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net