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

    The better solution that answers the question How to check if element exists in the visible DOM? with any element, even elements without id s is to do document.body.contains(element).

  2. Remove all child elements of a DOM node in JavaScript

    This is because, according to the DOM specification, any string of text within an element is considered a child node of that element. AND "To avoid memory leaks, jQuery removes other …

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

  4. 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 …

  5. 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).

  6. Force DOM redraw/refresh on Chrome/Mac - Stack Overflow

    Not sure exactly what you're trying to achieve but this is a method I have used in the past with success to force the browser to redraw, maybe it will work for you. // in jquery …

  7. How to remove all event listeners of a DOM object in JavaScript?

    This uses cloneNode() to clone the elem DOM object, which ignores all event handlers (though, as Jan Turoň's answer notes, attributes like onclick="…" will remain. See that answer for how …

  8. 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: …

  9. javascript - What is Virtual DOM? - Stack Overflow

    Feb 23, 2014 · Recently, I looked at Facebook's React framework. It uses a concept called "the Virtual DOM," which I didn't really understand. What is the Virtual DOM? What are the …

  10. JavaScript DOM remove element - Stack Overflow

    Jan 12, 2012 · I'm trying to test if a DOM element exists, and if it does exist delete it, and if it doesn't exist create it. var duskdawnkey = localStorage["duskdawnkey"]; var iframe = …