• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 22. Understanding the Document Object > Methods of the Document Object

Methods of the Document Object

The Document object has a number of useful methods, which I've summarized in Table 22.2.

Table 22.2. Selected Methods of the Document Object
Method Compatibility Description
captureEvents() Netscape 4+ Intercepts an event so that it can be handled by the Document object instead of the object that fired the event
clear() JavaScript 1.0 Clears all text and tags from the document
close() JavaScript 1.0 Closes the output stream that was being used to write text to the document
open() JavaScript 1.0 Opens an output stream to write text to the document
releaseEvents() Netscape 4+ Releases events that were being intercepted by the Document object
routeEvent() Netscape 4+ Intercepts an event so that it can be handled by the Document object, and then passes the event along to the object that fired the event
write() JavaScript 1.0 Writes data to the document
writeln() JavaScript 1.0 Writes a line of data to the document, followed by a carriage return



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint