Hide div in iframe
Posted: Wed Feb 12, 2014 11:42 pm
Hello,
I put an iframe in a cmsms page, and tried to hide an iframe's element, like this:
but it doesn't work due to the Same-origin policy I guess.
Has anybody a workaround?
thanks
I put an iframe in a cmsms page, and tried to hide an iframe's element, like this:
Code: Select all
<__iframe id="webmailiframe" src="https://mycloud.seeweb.it/webmail/" frameborder="0" style="overflow:hidden;height:400px;width:100%" height="400px" width="100%"></__iframe>
{literal}
<__script__>
$('#webmailiframe').contents().find('#menu').hide();
</__script>
{/literal}
Has anybody a workaround?
thanks