Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. //HTML-code
  2. //<input type="text"> oninput: <span id="result"></span>
  3. //HTML-code end
  4. <script>
  5. var input = document.body.children[0];
  6.  
  7. input.oninput = function() {
  8. document.getElementById('result').innerHTML = input.value;
  9. };
  10. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement