In Chapter 12, we looked at how to turn an element defined by HTML tags into an object that can then be addressed by the Document Object Model. The DOM allows you to find out information about the objectsuch as its size, location, and whether it is visibleusing JavaScript. All the information gained about the environment in Chapter 13 was derived from asking the browser questions, such as its type and screen size. In this chapter, we will be looking at what information can be gained by querying objects in the browser window for information about themselves. |