I use the following script there, form this script on my page, add an iframe, and I want to get an iframe html.
<script src="http://ads.sonobi.com/ttj?id=881134" type="text/javascript"></script>
The problem in the iframe is the internal iframe.
Javascript function used to get ifrmae content
document.getElementById('f1').contentWindow.document.body.innerHTML
When I run this, the following error will be displayed
Permission denied to access property 'document'
How to solve the problem of access denied.
javascript jquery php iframe
user1884702
source share