简体   繁体   中英

How to remove or hide a div, which is inside an IFRAME that pulls an external link?

var ifrm = document.createElement("iframe"); var linkFrm = " https://ExternalLink/ ";

Example:

        var x = linkFrm.document.getElementsByClassName("class");
        x.style.height = "0px";
        x.style.width = "0px";

如果某个东西在iframe ,并且您无权访问iframe的原始位置,那么您就无法操作其中的元素。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM