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.

What is the difference between properties and attributes in HTML?

After the changes made in jQuery 1.6.1, I have been trying to define the difference between properties and attributes in HTML. …

javascript html dom properties
How to get the title of HTML page with JavaScript?

How can I get the title of an HTML page with JavaScript?

javascript html dom title
Changing website favicon dynamically

I have a web application that's branded according to the user that's currently logged in. I'd like to change the …

javascript html dom favicon
"Submit is not a function" error in JavaScript

Can anyone tell me what is going wrong with this code? I tried to submit a form with JavaScript, but …

javascript html dom submit
How do you check if a JavaScript Object is a DOM Object?

I'm trying to get: document.createElement('div') //=> true {tagName: 'foobar something'} //=> false In my own scripts, I used …

javascript dom object
How can I determine the type of an HTML element in JavaScript?

I need a way to determine the type of an HTML element in JavaScript. It has the ID, but the …

javascript dom
How to set DOM element as the first child?

I have element E and I'm appending some elements to it. All of a sudden, I find out that the …

javascript jquery arrays dom elements
Getting DOM elements by classname

I'm using PHP DOM and I'm trying to get an element within a DOM node that have a given class …

php css dom
How to replace DOM element in place using Javascript?

I am looking to replace an element in the DOM. For example, there is an <a> element that …

javascript dom