Saturday, December 22, 2007
The Document Object Model is the means by which Javascript can access and modify the content of both your web page content and also any stylesheets attached to it. ...
Saturday, December 22, 2007
The very first browsers to provide Javascript access to the content of the web page document itself did so by providing access to collections of certain types of objects within the web page. The ...
Saturday, December 22, 2007
The main way of accessing specific parts of an already existing web page is by using the getElementById method attached to the document. This particular method provides us with a way to access a ...
Saturday, December 22, 2007
Exactly which properties are available when you access an HTML container from a web page via the getElementById method depends on the type of element that theid is attached to. Most commonly an i...
Saturday, December 22, 2007
Like the other attributes on a tag, we can access and change the style associated with a given tag when we access it using getElementById. There are two ways in which this differs from the other ...
Saturday, December 22, 2007
The most useful property of our web page objects that we can access is not a part of the official standard at all. The innerHTML property was introduced by Microsoft in Internet Explorer as a con...
Saturday, December 22, 2007
The biggest difference between the collections that we looked at in the second tutorial and getting by id as we have looked at in the more recent tutorials is that to be able to get by id we need...
Saturday, December 22, 2007
When we have an id on a tag we uniquely identify that specific tag which we can retrieve using document.getElementById('id'). When we just want to retrieve all of the tags of a particular...
Saturday, December 22, 2007
So far we have looked at how to use the various commands that the DOM makes available to us to access various parts of our web page and we have looked at the non-standard but widely supported inn...
Saturday, December 22, 2007
What makes adding and replacing objects on your web page more difficult than removing objects that are already in the page is that you must first create the new object to be added to the page brf...