In my current project, I need to load iframe which is loaded through script tag. In that iframe, one link is coming ( tag), so I want to hide that tag. Possible?
I'm adding one widget to my site.
Below is my sample code:
<script src='https://www.indianballot.com/js/widget2.js' type='text/javascript'></script>
This JS file is loading iframe through document.write(); Is there any way to hide that tag ?
答案 0 :(得分:-1)
如果您的src='JS File Source'
是本地文件,并且您可以在那里编辑标签,那么这将是一个解决方案。或者你可以使用另一部分JS在页面加载时找到一个href并在那里切换它的可见性。
希望这有帮助