Use the \"value\" property. var myValue = window.document.getElementById(\"MyTextBox\").value;
var myValue = window.document.getElementById("MyTextBox").value;