Top "Dom" questions

The Document Object Model(DOM) is a way to programmatically refer to the elements of a markup language like XML and HTML.

How to get a DOM Element from a JQuery Selector

I'm having an impossibly hard time finding out to get the actual DOMElement from a jquery selector. Sample Code: <…

javascript jquery dom
Event when window.location.href changes

I'm writing a Greasemonkey script for a site which at some point modifies location.href. How can I get an …

javascript dom greasemonkey dom-events
JQuery html() vs. innerHTML

Can I completely rely upon jQuery's html() method behaving identical to innerHTML? Is there any difference between innerHTML and jQuery's …

javascript jquery html dom innerhtml
Using ng-if as a switch inside ng-repeat?

I am working on Angular app. I tried to use ng-if and switch inside ng-repeat but didn't succeed. I have …

angularjs dom laravel-4 angularjs-ng-repeat angularjs-ng-if
XML Document to String

What's the simplest way to get the String representation of a XML Document (org.w3c.dom.Document)? That is …

java xml string dom xmldocument
Java: Most efficient method to iterate over all elements in a org.w3c.dom.Document?

What is the most efficient way to iterate through all DOM elements in Java? Something like this but for every …

java xml dom iteration
How do I select text nodes with jQuery?

I would like to get all descendant text nodes of an element, as a jQuery collection. What is the best …

javascript jquery dom
How to get the HTML for a DOM element in javascript

Imagine I have the following HTML: <div><span><b>This is in bold</…

javascript html dom
jQuery Force set src attribute for iframe

I have a main page (actually a JSP) with an iframe inside it as; <iframe name="abc_frame" id="…

javascript jquery dom
How to correctly iterate through getElementsByClassName

I am Javascript beginner. I am initing web page via the window.onload, I have to find bunch of elements …

javascript html dom