Answers for "javascript for email"

10

validate email javascript

function validateEmail(email) {
    const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
    return re.test(String(email).toLowerCase());
}
Posted by: Guest on July-06-2020
2

javascript email link

<body onload="javascript: window.location.href='mailto:[email protected]';">
Posted by: Guest on March-25-2020

Code answers related to "javascript for email"

Code answers related to "Javascript"

Browse Popular Code Answers by Language