View difference between Paste ID: GiYe8PZR and NXYPpPRJ
SHOW: | | - or go back to the newest paste.
1
<html>
2
<head>
3
 
4
</head>
5
<body>
6
    <input type="text" id='Text' placeholder="Input" >
7
    <button onclick="Input()">Input</button>
8
    <script>
9
    function Input() {
10
        let Text = document.getElementById('Text').value;
11-
        for(let i = 0; i < Text.length; i++) {
11+
        for (let i = 0; i < Text.length; i++) {
12-
        let testata = document.createElement('h1');
12+
            let testata = document.createElement('h1');
13-
        testata.innerHTML = Text[i];
13+
            testata.innerHTML = Text[i];
14-
        document.body.appendChild(testata);
14+
            document.body.appendChild(testata);
15
        }
16-
    console.log(Text);
16+
17
        console.log(Text);
18-
    var NV= h1;
18+
19
        var NV= h1;
20
    }
21
    </script>
22
    <style>
23-
    display: inline
23+
24
        display: inline
25
    }
26
    </style>
27
</body>
28
</html>