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