I have an affiliate shop with order page loading in iframe from another domain. I'm looking for a way to change CSS style of this iframe-page.
mysite.com/buy.html looks like this:
Code:
<HTML>
<HEAD>
<script type="text/javascript">
function styleIFrame()
{ document.frames['orderframe'].document.body.style.backgroundColor="green";
}
</script>
</HEAD>
<body onload="styleIFrame();">
<iframe id="orderframe" name="orderframe" src="https://ANOTHERdomain.com/order.html"></iframe>
</body>
</html>IE 6 throws JS-error: "Access is denied". I think this is because domains differ or because of httpS of iframe src. Are there any workarounds? Thanks.
mysite.com/buy.html looks like this:
Code:
<HTML>
<HEAD>
<script type="text/javascript">
function styleIFrame()
{ document.frames['orderframe'].document.body.style.backgroundColor="green";
}
</script>
</HEAD>
<body onload="styleIFrame();">
<iframe id="orderframe" name="orderframe" src="https://ANOTHERdomain.com/order.html"></iframe>
</body>
</html>IE 6 throws JS-error: "Access is denied". I think this is because domains differ or because of httpS of iframe src. Are there any workarounds? Thanks.
