CD-376 Part VI . Appendixes createElement( tagName ) NN2 NN3 (Web page design)
CD-376 Part VI . Appendixes createElement( tagName ) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Chapter 15 contains numerous examples of the document.createElement() method in concert with methods that add or replace content to a document. See Listings 15-10, 15-21, 15-22,15 -28, 15-29, and 15-31. createEventObject([eventObject]) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example See the discussion of the fireEvent() method in Chapter 15 for an example of the sequence to follow when creating an event to fire on an element. createStyleSheet([ URL [, index]]) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Listing 18-13 demonstrates adding an internal and external style sheet to a document. For the internal addition, the addStyle1()function invokes document. createStyleSheet() and adds a rule governing the P elements of the page (not available for IE5/Mac). In the addStyle2()function, an external file is loaded. That file contains the following two style rules: H2 {font-size:20pt; color:blue} P {color:blue} document.createStyleSheet()
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.