Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 986409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:18:58+00:00 2026-05-16T05:18:58+00:00

Using just the DOM API, what are all of the different ways I can

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:18:59+00:00Added an answer on May 16, 2026 at 5:18 am

    “access” can come in two forms. Properties and Methods.

    In this list m is a node object (HTML element).
    Some properties:

    • m.innerHTML – the text
    • m.nodeName -the name
    • m.nodeValue – the value
    • m.parentNode – the parent node
    • m.childNodes – the child nodes
    • m.attributes – the attributes nodes

    Some methods:

    • m.getElementById(id) – the element with id
    • m.getElementsByTagName(name) – get all elements by tag name
    • m.appendChild(node) – insert child node to m
    • m.removeChild(node) – remove child node from m

    Some “special” ones:

    • document.documentElement – root node of document
    • document.body – direct access to body element tag

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know how to create a complete dom from an xml file just using
Is it possible to identify a DOM node if it is empty using just
It is possible to access HTML DOM from an applet using netscape.javascript JSObject API.
Can I create a vector v3 = [1,100,2,99,3,98,...,100,1] using just colon notation? I've only
Just using this as an example... Here are the columns in my UserProfile table:
Instead of just using urllib does anyone know of the most efficient package for
I've just started using DOM and wanted to parse an Android XML layout file
Is there an easy way (perhaps using the DOM api, or other) where I
Does anyone know how I can style dynamic elements created via the DOM method
Im trying to write a java program using xml dom. i just want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.