CD-375Appendix F . Examples from Parts III and (Anonymous web server)

CD-375Appendix F . Examples from Parts III and IV close() NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Before you experiment with the document.close()method, be sure you understand the document.write() method described later in this chapter. After that, make a separate set of the three documents for that method s example (Listings 18-16 through 18-18 in a different directory or folder). In the takePulse()function listing, comment out the document.close() statement, as shown here: msg +=

Make it a great day! parent.frames[1].document.write(msg) //parent.frames[1].document.close() Now try the pages on your browser. You see that each click of the upper button appends text to the bottom frame, without first removing the previous text. The reason is that the previous layout stream was never closed. The document thinks that you re still writing to it. Also, without properly closing the stream, the last line of text may not appear in the most recently written batch. createAttribute( attributeName ) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Unfortunately, the setAttributeNode()method in NN6 does not yet work with attributes generated by the createAttribute() method. This will be fixed eventually, and you can experiment adding attributes to sample elements in The Evaluator. In the meantime, you can still create an attribute and inspect its properties. Enter the following text into the top text box: a = document.createAttribute( author ) Now enter ainto the bottom text box to inspect the properties of an Attrobject. document.createAttribute()
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

Leave a Reply