Programmeren in JavaScript/Appendices/Appendix B: testomgeving: verschil tussen versies

}
writespace.innerHTML = writespace.innerHTML + t + "<br />";
}
function dwrite(s)
{
var writespace = document.getElementById("writespace");
var t = "" + s;
writespace.innerHTML = writespace.innerHTML + t;
}
function onRunButtonClicked()
{
var writespace = document.getElementById("writespace");
writespace.innerHTML = "";
codespace = document.getElementById("codespace");
var s = codespace.value;
s = s.replace(/document.write/g, "writedwrite");
eval(s);
}
144

bewerkingen

Informatie afkomstig van https://nl.wikibooks.org Wikibooks NL.
Wikibooks NL is onderdeel van de wikimediafoundation.