Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

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

The Document Interface

The document interface returns information about the document itself. Of these, the one that will be used most often is the documentElement attribute that creates a node of the root element of the document. If you are walking the document tree to find an element, this is a great way to start. The document interface has the following read-only attributes:

doctype

implementation

documentElement


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint