I have created iframe with following code
I have used following javascript code to access scrolheight of iframe , in order to remove scroll bar based on the height
I got "access denied" javascript error at the time of execution . I wish to know how to correct this error
Thanks in advance
Code:
<iframe src="http://astore.amazon.com/" width="100%" frameborder="0" name="amframe" id="amframe" height="1" scrolling="no" onLoad="resizeFrame1();" ></iframe>
Code:
var h= document.getElementById("amframe").contentWindow.document.body.scrollHeight
Thanks in advance
Comment