Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <input type="text" id='Text' placeholder="Input" >
- <button onclick="Input()">Input</button>
- <script>
- function Input() {
- let Text = document.getElementById('Text').value;
- for (let i = 0; i < Text.length; i++) {
- let testata = document.createElement('h1');
- testata.innerHTML = Text[i];
- document.body.appendChild(testata);
- }
- console.log(Text);
- var NV= h1;
- }
- </script>
- <style>
- h1 {
- display: inline
- }
- </style>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement