Geeks With Blogs
Stuff I do my notepad
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):

console.cd(contentIFrame);

To return to the top level window, use cd() with no argument:

console.cd();

It took me some time to find out that this was possible in IE 11 Developer tools. Everything is so much easier in Chrome. No drama. Sometimes I feel that I hate IE more and more. 


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.

Posted on Friday, October 25, 2013 3:12 PM IE11 , Developer Tools , JavaScript , Debugging | Back to top


Comments on this post: IE 11 Developer Tools - changing console target to a different frameset or iframe

# re: IE 11 Developer Tools - changing console target to a different frameset or iframe
Requesting Gravatar...
Your online journal gave us profitable data to work with. Each and every tips of your post are marvelous. Much appreciated for sharing. Continue blogging, clothes mailing bags
Left by Robinjack on Mar 14, 2018 4:54 AM

Your comment:
 (will show your gravatar)


Copyright © vladimirl | Powered by: GeeksWithBlogs.net