About 11,300,000 results
Open links in new tab
  1. javascript - How can I check if an element exists in the visible DOM ...

    When storing a DOM element in an array, a reference to the DOM element is stored, not a copy, so changes made to the DOM element will be reflected when referencing the array's element.

  2. What is the DOM and BOM in JavaScript? - Stack Overflow

    Dec 11, 2010 · DOM -> Document Object Model in JavaScript is the API to access the elements inside the document. It maps the entire Document into an hierarchy of parent and child tree.

  3. dom - How do I get the value of text input field using JavaScript ...

    Jul 19, 2012 · While I appreciate the completeness of the accepted answer, I found this answer to be of use re: accessing, in JS code, a value entered in a DOM text input element (text box).

  4. javascript - How to add a class to a given element? - Stack Overflow

    Nov 28, 2016 · What does adding a class to a DOM element have to do with learning the language? document.getElementById ('div1').className is as much a library related issue as using jQuery to do …

  5. javascript - Check if element is visible in DOM - Stack Overflow

    Is there any way that I can check if an element is visible in pure JS (no jQuery) ? So, given a DOM element, how can I check if it is visible or not? I tried: window.getComputedStyle(my_element)['d...

  6. javascript - How to get parent element by selector - Stack Overflow

    This Stack Overflow page discusses methods to get the parent element by selector in web development.

  7. javascript - Detect changes in the DOM - Stack Overflow

    Jul 10, 2010 · The DOM Level-2 has Mutation event types, but older version of IE don't support it. Note that the mutation events are deprecated in the DOM3 Events spec and have a performance penalty. …

  8. Javascript DOM: Setting custom DOM element properties

    Note that I'm talking about properties as in normal javascript object properties here, not element attributes. I'm interested both in how cross-browser it is, and whether its supported in any spec. Does …

  9. javascript - How to find all Siblings of the currently selected DOM ...

    49 What is the perfect way to find all nextSiblings and previousSiblings in JavaScript. I tried few ways but not getting accurate solution. If any element is selected, I need to get length of all next siblings …

  10. How can I loop through all DOM elements on a page?

    I'm trying to loop over ALL elements on a page, so I want to check every element that exists on this page for a special class. How do I check EVERY element?