Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Email address protection


< html >
< head >
< script >
user = "username" ;
site = "yoursite.com" ;
document.write( '<center><a href=\"mailto:' + user + '@' + site + '\">' );
document.write(user + '@' + site + '</a></center>' );
</ SCRIPT >
</ head >
< body >
Look at the souce code of this script to see how to do it.
</ center >
</ BODY >
</ html >