console-in-browser-ausgebn.php
Quell Code
<div id="console"></div> <script> /* console.log function from: http://www.kobashicomputing.com/send-your-console-output-to-the-result-pane-in-jsfiddle */ var console = function() { return({ log: function(msg) { consoleDiv = document.getElementById('console'); para = document.createElement('p'); text = document.createTextNode(msg); para.appendChild(text); consoleDiv.appendChild(para); } }); }(); console.log("test"); </script> <script> var a=jjjjj; console.log('misthaufen'); </script>