How to get the contents of an input box using JavaScript?
2456
18-Mar-2011
Updated on 18-Sep-2020
Amit Singh
18-Mar-2011var myValue = window.document.getElementById("MyTextBox").value;