Using just the DOM API, what are all of the different ways I can access a node?
For example, I know I can call document.getElementById("header");. I’d like a complete list of ways to get access to this node.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
“access” can come in two forms. Properties and Methods.
In this list m is a node object (HTML element).
Some properties:
Some methods:
Some “special” ones:
Note: there are other proporties such as .length etc for specific use when applicable.
EDIT: A reference to the specification can be found here: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html
EDIT2: A reference to the level 1 HTML specification here: http://www.w3.org/TR/REC-DOM-Level-1/level-one-html.html
EDIT3: Complete ECMA script binding: http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html