Hi All,
I have this code. When I type in jenny@ebay.com, it should run
alert("Thanks for your interest.") line. But it does not. Why and
how can I correct it? I use IE 6 with windows xp.
Thanks a lot.
<HTML><body>
<form name="myForm">
<INPUT TYPE="text" VALUE="Enter email" NAME="userEmail "
onChange=valida teInput()>
</form>
<script type="text/javascript">
this.myForm.use rEmail.select()
function validateInput() {
userInput = this.myForm.use rEmail.value
document.write( userInput)
if (userInput.inde xOf('@')>0 && userInput.index Of('.')>0)
alert("Thanks for your interest.")
else
alert("Please check that your email details are correct before
submitting")
}
</script>
I have this code. When I type in jenny@ebay.com, it should run
alert("Thanks for your interest.") line. But it does not. Why and
how can I correct it? I use IE 6 with windows xp.
Thanks a lot.
<HTML><body>
<form name="myForm">
<INPUT TYPE="text" VALUE="Enter email" NAME="userEmail "
onChange=valida teInput()>
</form>
<script type="text/javascript">
this.myForm.use rEmail.select()
function validateInput() {
userInput = this.myForm.use rEmail.value
document.write( userInput)
if (userInput.inde xOf('@')>0 && userInput.index Of('.')>0)
alert("Thanks for your interest.")
else
alert("Please check that your email details are correct before
submitting")
}
</script>
Comment