Get HTML element of <iframe> inside <div>

I want to set an event listener of ‘input’ on an HTML element inside <iframe> … Read more Get HTML element of <iframe> inside <div>

I want to set an event listener of 'input' on an HTML element inside <iframe> tag. The problem is, I can’t select those elements either with document.querySelector() or document.getElementById()

This is the last HTML element I can get, if I get deeper than that, it will be null.

My target is a <div> tag inside the <iframe> tag on line 8.

Source: JavaSript – Stack Overflow



Leave a Reply

Your email address will not be published. Required fields are marked *