simple es6 adapted from h3manth:
document.querySelectorAll('iframe').forEach( item =>
console.log(item.contentWindow.document.body.querySelectorAll('a'))
)
More Related Contents:
- Ways to deal with #document under iframe
- Frame Buster Buster … buster code needed
- How to get the body’s content of an iframe in Javascript?
- Make iframe automatically adjust height according to the contents without using scrollbar? [duplicate]
- How to set an iframe src attribute from a variable in AngularJS
- How to open a PDF file in an ?
- Capture iframe load complete event
- How to pick element inside iframe using document.getElementById
- Using querySelector with IDs that are numbers
- cross-domain iframe resize
- Stop embedded youtube iframe?
- Get IFrame’s document, from JavaScript in main document
- How to get nth-child selector to skip hidden divs [duplicate]
- How can I detect whether an iframe is loaded?
- Attach an event in a child iframe to a handler in the parent window
- Good Reasons why not to use Iframes in page content [closed]
- Detect click event inside iframe
- How to set HTML content into an iframe
- Open link in iframe [closed]
- How is it possible for an iframe to access its parents DOM?
- Embed an External Page Without an Iframe?
- How to synchronize scrolling positions for several iframes
- how to resolve iframe cross domain issue [duplicate]
- Insert content into iFrame
- Resize external website content to fit iFrame width
- Refresh iFrame (Cache Issue)
- Reload an HTML page just once using JavaScript
- Iframe inherit from parent
- Why is iframe.contentWindow == null?
- How to pass parameters through iframe from parent html?