topical media & game development
#javascript-code-04-email.js / js
// A generic function for checking to see if an input element
// looks like an email address
function checkEmail( elem ) {
// Make sure that something was entered and that it looks like
// a valid email address
return !elem.value || /^[a-z0-9_+.-]+\@([a-z0-9-]+\.)+[a-z0-9]{2,4}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.