Make my own web site - 370Part IIIDocument Objects Referencesubjects that extend well beyond

370Part IIIDocument Objects Referencesubjects that extend well beyond the scope of this book. You can begin to explore this sub- ject within the context of Mozilla-based browsers and scripting athttp://www.mozilla.org/scriptable/. clientInformationValue:navigator object.Read-OnlyCompatibility:WinIE4+, MacIE4+, NN-, Moz-, Safari- In an effort to provide scriptable access to browser-level properties while avoiding referenceto the Navigator browser brand, Microsoft provides the clientInformationproperty. Itsvalue is identical to that of the navigatorobject an object name that is also available in IE. Use the navigatorobject for cross-browser applications. (See Chapter 38 on the CD-ROM.) Related Items:navigatorobject. clipboardDataValue:Object.Read/WriteCompatibility:WinIE5+, MacIE-, NN-, Moz-, Safari- Use the clipboardDataobject to transfer data for such actions as cutting, copying, and past- ing under script control. The object contains data of one or more data types associated witha transfer operation. Use this property only when editing processes via the Edit menu (orkeyboard equivalents) or context menu controlled by script typically in concert with edit- related event handlers. Working with the clipboardDataobject requires knowing about its three methods, shown inTable 16-1. Familiarity with the edit-related event handlers ( before and after versions ofcut, copy, and paste) is also helpful (see Chapter 15). Table 16-1: window.clipboardData Object MethodsMethodReturnsDescriptionclearData([format])NothingRemoves data from the clipboard. If no formatparameter is supplied, all data is cleared. Dataformats can be one or more of the following strings: Text, URL, File, HTML, Image. getData(format)StringRetrieves data of the specified format from theclipboard. The format is one of the following strings: Text, URL, File, HTML, Image. The clipboard is notemptied when you get the data, so that the data canbe retrieved in several sequential operations. setData(format, data)BooleanStores string data in the clipboard. The format is oneof the following strings: Text, URL, File, HTML, Image. For non-text data formats, the data must bea string that specifies the path or URL to the content. Returns trueif the transfer to the clipboard issuccessful. windowObject.appCore

Leave a Reply