As a challange of mine, i decided to do a little Code Player like jsfiddle, i have done all, but my problem come when i try to exec JS, when i try to call an element inside the iframe like this:
document.getElementById("hola").innerHTML="nohola";
It just says:
TypeError: document.getElementById(...) is null
There's a live demo: jsfiddle.net
How i can inject js into the iframe and call elements inside it?