bkdell11
08-18-2005, 09:10 PM
Hi all
I have this javascript that'll let users email a page to anyone. But run across a problem. I want to link some text to another site in the email and can't figure out how to do it.
Here's the code:
<script language="javascript">
function mailpage()
{
mail_str = "mailto:?subject=Thought this might interest you: " + document.title;
mail_str += "&body=I thought you might be interested in this: " + document.title;
mail_str += ". %0D%0DYou can view it at, " + location.href;
mail_str += ". %0D%0DSome links may require you to log in with your authorized Member user ID and password. If you are not yet a member, then explore the Partner Network to discover the benefits of becoming a Partner., "
location.href = mail_str;
}
</script>
So I want to link the words "Partner Network" in that last string to the home page of my partner site. How can I do that?
Thanks
I have this javascript that'll let users email a page to anyone. But run across a problem. I want to link some text to another site in the email and can't figure out how to do it.
Here's the code:
<script language="javascript">
function mailpage()
{
mail_str = "mailto:?subject=Thought this might interest you: " + document.title;
mail_str += "&body=I thought you might be interested in this: " + document.title;
mail_str += ". %0D%0DYou can view it at, " + location.href;
mail_str += ". %0D%0DSome links may require you to log in with your authorized Member user ID and password. If you are not yet a member, then explore the Partner Network to discover the benefits of becoming a Partner., "
location.href = mail_str;
}
</script>
So I want to link the words "Partner Network" in that last string to the home page of my partner site. How can I do that?
Thanks