Breaking

change background color using native javascript

var x = document.getElementById("myframe");
    var y = x.contentWindow.document;
    y.body.style.backgroundColor = "red";


<script type="text/javascript">
$(document).ready(function(){
    $('iframe').contents().find('body').css('backgroundColor', 'white');
});
</script>

No comments:

Powered by Blogger.