Sara Chipps Sara Chipps - 1 year ago 61
jQuery Question

Return all page iFrames without id element

I tried this the intuitive way with both JavaScript and jQuery, with no dice for either.


got me:

Uncaught TypeError: Object # has no method


got me

Is an iframe an element? Is there a way to do this?

I'm trying to return all the page iframes.

Thank you.

Joe Joe
Answer Source

The function needs a lower case g like so document.getElementsByTagName('iframe') . Yes, iframe is a tag.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download