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 give a Blob uploaded as FormData a file name?

I am currently uploading images pasted from the clipboard with the following code: // Turns out getAsFile will return a blob, …

javascript dom google-chrome form-data
How to bind bootstrap popover on dynamic elements

I'm using Twitter Bootstrap's popover on the dynamic list. The list item has a button, when I click the button, …

javascript jquery twitter-bootstrap dom bootstrap-popover
Pass mouse events through absolutely-positioned element

I'm attempting to capture mouse events on an element with another absolutely-positioned element on top of it. Right now, events …

javascript html events dom javascript-events
how to compare two elements in jquery

var a=$('#start > div:last-child'); var b=$('#start > div.live')[0]; alert(a==b) alert(a==$(b)) …

javascript jquery dom
What is the difference between children and childNodes in JavaScript?

I have found myself using JavaScript and I ran across childNodes and children properties. I am wondering what the difference …

javascript dom
Does document.body.innerHTML = "" clear the web page?

When I refresh the page below in FF 3.0, I expected the web page to clear but it didn't. Why doesn't …

javascript firefox dom innerhtml
React.js: onChange event for contentEditable

How do I listen to change event for contentEditable-based control? var Number = React.createClass({ render: function() { return <div> &…

javascript dom contenteditable reactjs
Javascript querySelector vs. getElementById

I have heard that querySelector & querySelectorAll are new methods to select DOM elements. How do they compare to the …

javascript jquery dom
Change <select>'s option and trigger events with JavaScript

How can I change an HTML <select>'s option with JavaScript (without any libraries like jQuery), while triggering …

javascript html dom html-select dom-events
Difference between window.location.href, window.location.replace and window.location.assign

What is the difference between window.location.href="http://example.com"; window.location.replace("http://example.com"); window.location.assign("…

javascript dom location