Jump to content

DOM as an array


niche

Recommended Posts

Since document.body = document.getElementsByTagName('body')[0] can everything in the DOM be turned into an array? If so how?

Link to comment
Share on other sites

I use Chrome, and just log everything to the console, while having the developers tool window open and on the console tab. It will also work in other browsers, except for IE, where you have to define console globally first.

console.log('stuff here');

Link to comment
Share on other sites

I like the elements tab for inspecting the structure and CSS. but to log my work and inspect the state of my application, I like to use the console. To be honest, since I've started using Chrome, I've never looked back to FF. But yes, for FF, as DD suggested, the DOM Inspector would work well.

Link to comment
Share on other sites

Thanks for your help Ingolme, thescientist, and Deirdre's Dad. I'm learning what I need to know.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...