List DOM Documents attributes and methods using Javascript

Posted by EddyR on Stack Overflow See other posts from Stack Overflow or by EddyR
Published on 2010-06-12T09:47:27Z Indexed on 2010/06/12 9:52 UTC
Read the original article Hit count: 263

Filed under:
|

Just wondering if it's possible to print and list all methods and attributes available to the DOM document itself using Javascript?

So I would get something like so:

Document.doctype Document.implementation Document.documentElement Document.createElement Document.createDocumentFragment Document.createTextNode Document.createComment Document.createProcessingInstruction etc... etc...

I want to do this to test on different browsers and not have to wade through mountains technical documents from each vendor to get accurate information.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom