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

Chapter 9. Using the document and body Objects > The document Object Methods

The document Object Methods

The most famous document object method is the write method, which enables you to write to a web page. However, this object supports many other methods, as you see in Table 9.4 in overview, and in Table 9.5 in depth.

Table 9.4. Overview of the Methods of the document Object
Methods  
attachEvent captureEvents clear
clearAttributes close createAttribute
createComment createDocumentFragment createElement
createEventObject createRange createStyleSheet
createTextNode detachEvent elementFromPoint
execCommand focus getElementById
getElementsByName getElementsByTagName getSelection
handleEvent hasFocus mergeAttributes
open queryCommandEnabled queryCommandIndeterm
queryCommandState queryCommandSupported queryCommandValue
recalc releaseCapture releaseEvents
routeEvent setActive write
writeln  



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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