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
Ausgewählte Lösung
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?
Diese Antwort im Kontext lesen 👍 1Alle Antworten (2)
Ausgewählte Lösung
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!