How do I cd into an iframe in chrome developer tools or firebug lite in chrome?

Deepan Chakravarthy picture Deepan Chakravarthy · Apr 19, 2011 · Viewed 10.9k times · Source

when I try cd, console says "cd is not defined"

Answer

Paul Irish picture Paul Irish · May 17, 2012

In Chrome Devtools, the "context switcher" is available at the bottom of the page. See the <top frame> dropdown? In there you can change where your script is executing from. This is the same, effectively, as cd().

This is explained more in https://stackoverflow.com/a/8581276/89484