Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //HTML-code
- //<input type="text"> oninput: <span id="result"></span>
- //HTML-code end
- <script>
- var input = document.body.children[0];
- input.oninput = function() {
- document.getElementById('result').innerHTML = input.value;
- };
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement