<input type="text" id="email" /> <script type="text/javascript"> var email=document.getElementById('email').value; if (email=='itsme@vxc.dsf') ...