I am using following script there, form this script on my page add iframe and I want to get iframe html.
<script src="http://ads.sonobi.com/ttj?id=881134" type="text/javascript"></script>
Problem is in iframe there is inner iframe.
Javascript following function using for get content of ifrmae
document.getElementById('f1').contentWindow.document.body.innerHTML
When I run this will show following error
Permission denied to access property 'document'
How to solve the problem of permission denied.