Το ξεβόλεμα

Leave a Reply

Your email address will not be published. Required fields are marked *

var iframe = document.getElementsByTagName('iframe')[0]; iframe.addEventListener("load", function() { /* the JS equivalent of the answer * * var node = document.createElement('style'); * node.appendChild(document.createTextNode('body { background: #fff; }')); * window.frames[0].document.head.appendChild(node); */ // the cleaner and simpler way window.frames[0].document.body.backgroundColor = "#ff0000"; });