Hi, I’m trying to write a mailto for a tell a friend script that can have multiple entries… I have ben able to populate the address field with two adressess so far (ultimately I’m looking to include five) but I cant seem to include the address seperator “;” … any help appreciated. Thanks in advance.
BJ
<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
var initialsubj=”Hi I’m pretty sure you’re really going to like this site!”
var initialmsg=”Hi:n I thought you’d like to check out this site: “+window.location
var good;
function checkEmailAddress(field) {
var goodEmail = field.value.match(/b(^(S+@).+((...............
if (goodEmail) {
good = true;
}
else {
alert(‘Please enter a valid address.’);
field.focus();
field.select();
good = false;
}
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {
//window.location = “mailto:”+document.eMailer.email.value+”?subject=”+initialsubj+”&body=”+document.title+” “+u;
window.location = “mailto:”+document.eMailer.email.value+document.eMailer.email2.value+”?subject=”+initialsubj+”&body=”+initialmsg
}
}
// End –>
</script>
<input type=”text” name=”email” size=”26″ value=” Enter Address Here” onFocus=”this.value=”” onMouseOver=”window.status=’Enter email address here and tell a friend about this site…’; return true” onMouseOut=”window.status=”;return true”>
<br>
<input type=”text” name=”email2″ size=”26″ value=” Enter Address Here” onFocus=”this.value=”” onMouseOver=”window.status=’Enter email address here and tell a friend about this site…’; return true” onMouseOut=”window.status=”;return true”>
<br>
<input type=”button” value=”Submit” onMouseOver=”window.status=’Click to send an email (with this page address) to a friend! Enter email address above…’; return true” onMouseOut=”window.status=”;return true” onClick=”mailThisUrl();”>
</p>
</form