HTML and CSS Reference
bug that can be used with Internet Explorer, Firefox, Opera, Safari, and Chrome. Down-
Although it is all well and good to log messages to the console, the real power of the
console comes from logging parts of the DOM and inspecting the value and existence of
objects, properties, and methods. For example, try changing the console message in the
prior code snippet to the following, and reload the page:
// log the window object to the
dow object as a collapsible list of properties and methods, as shown in Figure 7-2 .