//Html <form id="myForm" name="myForm"> <input id="email" name="email" value="some@email.com" /> </form> //JS var x=document.forms["myForm"]["email"].value;