<
HTML
>
< BODY >
< form action = " index.aspx " method = " post " onsubmit = " return submitTest(); " >
< INPUT id = " MyEMail " value = " 123@456.com " >< br >
< input type = " submit " value = " submit " >
</ form >
< SCRIPT LANGUAGE = " JavaScript " >
<!--
function submitTest()
{
var vv = document.getElementById( ' MyEMail ' ).value;
if (vv.length < 6 )
{
alert( ' please input something. ' );
return false ;
}
return true ;
}
// -->
</ SCRIPT >
</ BODY >
</ HTML >
< BODY >
< form action = " index.aspx " method = " post " onsubmit = " return submitTest(); " >
< INPUT id = " MyEMail " value = " 123@456.com " >< br >
< input type = " submit " value = " submit " >
</ form >
< SCRIPT LANGUAGE = " JavaScript " >
<!--
function submitTest()
{
var vv = document.getElementById( ' MyEMail ' ).value;
if (vv.length < 6 )
{
alert( ' please input something. ' );
return false ;
}
return true ;
}
// -->
</ SCRIPT >
</ BODY >
</ HTML >