Cd

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Added parameter description and examples)
m (Added categories)
 
Line 25: Line 25:
== See also ==
== See also ==
* [[Command Line API]]
* [[Command Line API]]
 +
 +
[[Category:Firebug]]
 +
[[Category:UI]]
 +
[[Category:API]]

Latest revision as of 00:03, 22 November 2013

By default, command line expressions are relative to the top-level window of the page. This command allows you to use the window of a frame in the page instead. So all expressions will be executed within the context of that frame from then on.

Contents

[edit] Syntax

cd(window)

[edit] Parameters

[edit] window

Frame window to switch to. (required)

[edit] Examples

cd(document.getElementById("someframe").contentWindow)

Changes to the window of the <frame> with the id someframe.

cd($$("iframe")[0].contentWindow)

Changes to the window of the first <iframe> using the $$ command.

[edit] See also

Personal tools