Pixelastic

You can cut our wings but we will always remember what it was like to fly.

Accessing a frame with Firebug console

If you want to access the Javascript console of an inner frame of a webpage, know that you can "browse" through the window as you could browse through a file system.

For example, if you want Firebug to use the first frameof the page as its current window object, just type the following code in Firebug console :

cd(window.frames[0])

This proved immensely useful when debugging a Facebook application.

Comments

Just stumbled upon your blog. Great tip indeed, will greatly help me deal with those crappy facebook iframes!
fastclemmyon 26/11/11
fastclemmy
... and 11 spam blocked

Adding a comment

Leave this field empty, it is only here to defeat spam bots
Will not be published