What is the equivalent to Firebug DOM tab in Chrome Dev tools?

dbrin picture dbrin · Mar 16, 2012 · Viewed 16.2k times · Source

I am used to using DOM tab to inspect global JS variables that are present on the page in Firebug. What is the equivalent of it in Chrome Developer tools?

Answer

Derek 朕會功夫 picture Derek 朕會功夫 · Mar 16, 2012

Type in window, then you will see the window object with everything inside it.

p.s: window is the "top-most" object in a normal webpage. (Global scope) Since "Chrome Developer Tools" is specifically mentioned, we can safely assume that window will always be the global scope.

Developer Tools
Press Console, then enter window. Press enter and now you can see a list of global variables, such as $ (jQuery) and document.