Kod:
<!-- TWO STEPS TO INSTALL AUTO EMAIL LINK:
1. Copy the coding into the HEAD of your HTML ********
2. Add the last code into the BODY of your HTML ******** -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML ******** -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: CodeLifter.com (support@codelifter.com) -->
<!-- Web Site: http://www.codelifter.com -->
<!-- This script and many more are available free online at http://www.ibold.net-->
<!-- Begin
var good;
function checkEmailAddress(field) {
// the following expression must be all on one line...
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert(''Please enter a valid e-mail address.'');
field.focus();
field.select();
good = false;
}
}
u = window.********;
m = "I thought this might interest you...";
function mailThisUrl() {
good = false
checkEmailAddress(********.eMailer.address);
if (good) {
// the following expression must be all on one line...
window.******** = "mailto:"+********.eMailer.address.value+"?subject="+m+"&body="+********.title+" "+u;
}
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML ******** -->
<BODY>
<form name="eMailer">
E-MAIL THIS LINK
<br>
Enter recipient''s e-mail:
<br>
<input type="text" name="address" size="25">
<br>
<input type="button" value="Send this URL" onClick="mailThisUrl();">
</form>
<!-- Script Size: 1.69 KB -->