WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Email Address Protection (Avoide SPAM)
Categories : Java Script, Email, Encryption Click here to Update Your Picture
Bobin R
Date : Mar 11th 2007
Grade : 3 of 5 (graded 2 times)
Viewed : 4900
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Bobin R
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

Providing your email address as is in an HTML page can invite many unwanted spam messages. This is because there are many email extractor programs that can extract your email address from a webpage. This simple script can be used to prevent that.

<html>
<head>
<title>Email Address Protector</title>
<script type="text/javascript">
<!--
function showEmail(user, domain, tld, title){
   var emailId = user + "\u0040" + domain + "." + tld;
   var url = "mailto:" + emailId;

   if(!title){
       title = emailId;
   }
   document.write("<a href='" + url + "'>" + title + "</a>");
}
//-->
</script>
</head>

<body>

You can use the function as show below<br/>
my email id is <script type="text/javascript">showEmail('contact', 'weberdev', 'com')</script><br/>
or Click <script type="text/javascript">showEmail('contact', 'weberdev', 'com', 'here')</script> to mail me
</body>
</html>



Javascript URL and Email Validation
Categories : Java Script, Data Validation, Form Processing, Email, URLs
Protect your mailto: email addresses from bots
Categories : PHP, Email, Java Script
Java Script which implements a Clock (Client Side)
Categories : Java Script, Date Time
PHP Array to Javascript Object
Categories : PHP, Arrays, Java Script
Three Cool Classes and One Trick
Categories : PHP, PHP Classes, Graphics, Email
Page Loading Message shown during the time your site's page is being loaded.
Categories : HTML, CSS, Java Script
Email a user with out exposing email address
Categories : PHP, Databases, MySQL, Email
Sample WML Mailer
Categories : PHP, WAP, WML, Email
JavaScript dropdown list menu to switch any page.
Categories : Java Script, Beginner Guides, Form Processing
Builds JavaScript that updates the contents of one selector based on another.
Categories : HTML, Java Script, PHP, Complete Programs, General
Formit 1.0. PHP Very easy to implement form-template(s) to email script. Works with multiple templates and HTML-format email. Only one file!
Categories : PHP, Email, HTML
Javascript Background Scroller
Categories : Java Script, CSS, HTML
Sending email with random details
Categories : PHP, Email, Debugging
Clock at Status Bar
Categories : Java Script, HTML, Date Time
AITSH Mail
Categories : Complete Programs, Email, PHP