<html><body>
<p id="demo"></p>
<script>
function validato()
{
document.getElementById("demo").innerHTML = emailio;
}
function emalio(x,y){
function ValidateEmail(mail)
{
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.emailAddr.value))
{
return (true)
}
alert("You have entered an invalid email address!")
return (false)
}
}
</script>
</body></html>
I tried to print function imalio() as it is on html page by not giving parameter. but it is not doing anything. Please somebody explain it to me.