Skip to content Skip to sidebar Skip to footer

List Dom Documents Attributes And Methods Using Javascript

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.docty

Solution 1:

You could use:

for (var l in document.body){
  console.log("document."+l+":"+document.body[l]);
}

Post a Comment for "List Dom Documents Attributes And Methods Using Javascript"