
In Inspect Element, how can I copy text in dropdown list under icon with following tooltip text: "Select an iframe as the currently targeted document"?
Hi there,
As per my screenshot, I'd like to see the full text in the iframe (cirled red icon) dropdown list and also be able to copy it.
Cheers, Jack
Chosen solution
Hi Jack, try this code in the web console:
var ifs=document.getElementsByTagName('iframe'); for(var i=0; i<ifs.length; i++) console.log(ifs[i].src);
That would list the iframes in the main document, but not within other iframes. Close?
Read this answer in context 👍 1All Replies (2)
Chosen Solution
Hi Jack, try this code in the web console:
var ifs=document.getElementsByTagName('iframe'); for(var i=0; i<ifs.length; i++) console.log(ifs[i].src);
That would list the iframes in the main document, but not within other iframes. Close?
thanks mate!