Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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"?

  • 2 replies
  • 1 has this problem
  • 58 views
  • Last reply by Jack2035

more options

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

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
Attached screenshots

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 👍 1

All Replies (2)

more options

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?

more options

thanks mate!