【发布时间】:2017-03-08 11:33:09
【问题描述】:
在我当前的项目中,我需要加载通过脚本标签加载的 iframe。 在那个 iframe 中,一个链接即将到来(标签),所以我想隐藏那个标签。 可能吗?
我正在向我的网站添加一个小部件。
以下是我的示例代码:
<script src='https://www.indianballot.com/js/widget2.js' type='text/javascript'></script>
这个JS文件正在通过document.write()加载iframe; 有什么办法可以隐藏那个标签吗?
【问题讨论】:
-
iframe 是否在同一个域中?
-
你只能通过不将它们放在网络上来隐藏它们
-
请提供更多代码,例如加载的内容。我还不确定,到底是什么问题。
-
不,它来自其他域@ovokuro
标签: javascript jquery html css iframe