when I try cd, console says “cd is not defined”
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.
Yes, you are right Firebug have this awesome command. I really like it. It’s making wotking with
iframesmuch easier. Personally I don’t go to Firefox just because thecd()is available in it because I can do whatever I can do with cd in chrome dev tools too.Just use
contentWindowkeyword in your command prompt to access theiframewindowObject. Then you will be good to access any function and variable out there.For example I have a variable in my
iframethat is not accessible via console normally.But still I can access to the variable via
contentWindowlike this:If you want to fire a function do this:
If you want to define some variables(the hardest one):
This is what
cd()actually does. I know it’s not as good as Firebugs cd(). But the good news iscd()is coming to Chrome