Sie sind hier : basti1012.de/ Kurze-Scripte-und-Codeschnipsel / index.php

Zurück


Der Quellcode dazu


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<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>