How to get the contents of an input box using JavaScript?

Submitted by: Administrator
Use the "value" property.
var myValue = window.document.getElementById("MyTextBox").value;
Submitted by: Administrator

Read Online JavaScript Job Interview Questions And Answers