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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Type in
window, then you will see thewindowobject with everything inside it.p.s:
windowis the “top-most” object in a normal webpage. (Global scope) Since “Chrome Developer Tools” is specifically mentioned, we can safely assume thatwindowwill always be the global scope.Press
Console, then enterwindow. Pressenterand now you can see a list of global variables, such as$(jQuery) anddocument.