IE 11 Developer Tools - changing console target to a different frameset or iframe
Posted
by vladimirl
on Geeks with Blogs
See other posts from Geeks with Blogs
or by vladimirl
Published on Fri, 25 Oct 2013 08:12:46 GMT
Indexed on
2013/10/25
21:55 UTC
Read the original article
Hit count: 1183
Originally posted on: http://geekswithblogs.net/vladimirl/archive/2013/10/25/ie-11-developer-tools---changing-console-target-to-a.aspx
To change current console iframe/frameset type this into console command line where "contentIFrame" in the iframe/frameset name (there should not be quotes around the iframe name):All script entered in the command line executes in the global scope of the currently selected window. If your webpage is built with a frameset or iframes, those frames load their own documents in their own windows.
To target the window of a frameset frame or an iframe, use the cd()
command, with the frame/iframe's name or ID attribute as the argument. For example, you have a frame with the name microsoftFrame and you're loading the Microsoft homepage in it.
cd(microsoftFrame);
Current window: www.microsoft.com/en-us/default.aspx
Important Note that there were no quotes around the name of the frame. Only pass the unquoted name or ID value as the parameter.
To return to the top level window, use cd()
with no argument.
© Geeks with Blogs or respective owner