How to call elements in iframe

use document.getElementById ("ifr1"). ContentWindow; cannot get the window object in iframe
the whole page is a static page
file:/F:/ligthglobal/vuecss/qqbsmall_1/home.html

running locally

clipboard.png

clipboard.png

how to solve this?

Mar.31,2021

can be obtained if it is in the same domain, and you can see if there is any HTML structure error in the foot.html. If not, the W3C cannot access the internal DOM of the cross-domain iframe for security reasons.

Menu