<html> <head> <title>Text Object Value</title> <script type="text/javascript"> function passInInput() { document.getElementById("output").value = document.getElementById("input").value; } </script> </head> <body> Enter lowercase letters for conversion to uppercase:<br> <form name="converter"> <input type="text" name="input" id="input" value="sample" onchange="passInInput()" /><br /> <input type="text" name="output" id="output" value="" /> </form> </body> </html>
Check Also
What is higher order function in JavaScript?
A higher-order function is a function that either takes another function as an argument or …