<分区>
我在那里使用以下脚本,在我的页面上形成此脚本添加 iframe,我想获取 iframe html。
<script src="http://ads.sonobi.com/ttj?id=881134" type="text/javascript"></script>
问题是在 iframe 中有内部 iframe。
Javascript 以下函数用于获取 ifrmae 的内容
document.getElementById('f1').contentWindow.document.body.innerHTML
当我运行它时会出现以下错误
Permission denied to access property 'document'
如何解决权限被拒绝的问题。