HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Type your name</p> <input type="text"> <p id="point"><p> <script> var x = document.getElementsByTagName("input")[0]; function myFunction() { var txt="Your Name is " + x.value document.getElementById("point").innerHTML = txt; } x.oninput = myFunction; </script> </body> </html>
OUTPUT
×

Save as Private