CodeAve.com CodeAve.com - JavaScript - Navigation
ASP
JavaScript
·Document Info
·Forms
·Images
·Miscellaneous
·Navigation
·Script Writers
·Contents
·What's New?
CSS
HTML
Maps
Links
Mail List
Search
Sitemap


 


EMail Address Link
Many viruses look inside your temporary internet files directory for email addresses embedded within cached versions of html output contained within that directory. So, if your email address is contained on a page and a user gets infected chances are you’re going to get some of that email. However, you can attempt to thwart the mountains (if that is a valid measure for emails received) of email by passing your email address as a JavaScript link. By placing the elements of a mail link into variables and having a document write statement create a mail link, your user should be able to click on it without noticing a difference, but some of the programs out there will not be able to interpret it and use it against you.
View the Output
Text View
Print View
Mail this Link
Download the Code

<html>
<title>CodeAve.com(JavaScript Mail Link)</title>
<body bgcolor="#FFFFFF">
<Script Language="JavaScript">
<!--
// The following is an example of how you can potentially
// twart getting spammed by placing your contact email address
// in a simple JavaScript link.
var u_a="mail"
var u_b="to:"
var u_c="any_address"
var u_d="@"
var u_e="server"
var u_f="name"
var u_g=".com"
document.write ("<a href='"+ u_a + u_b + u_c + u_d + u_e + u_f + u_g +"'>Mail Link</a>");
-->
</script>
<p>
<Script Language="JavaScript">
<!--
// The following is the same basic example as above,
// however we add a variable for the subject and the document
// title as the subject in the mail link.
var u_a="mail"
var u_b="to:"
var u_c="any_address"
var u_d="@"
var u_e="server"
var u_f="name"
var u_g=".com"
var u_h="?subject="
document.write ("<a href='"+ u_a + u_b + u_c + u_d + u_e + u_f + u_g + u_h + document.title +"'>Mail Link with Subjet</a>");
-->
</script>
</body>
<html>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
Maps: Map Script Writers | Bing Maps | Google Maps
Privacy Statement

CodeAve.com is hosted by MyHosting.com
Donate Food Online with a Mouse Click at TheHungerSite.com
Donate Land Online with a Mouse Click at TheRainForestSite.com
© 1999 - 2014 CodeAve.com
All Rights Reserved