kovalik
08-13-2002, 03:00 PM
Hi,
I am using this code to "email this recipe to a friend". The code itself works great. My problem is that the pages I want to use it on are asp pages. Example:
http://www.recipesplus.ca/recipe.asp?recipeID=134
Does anyone know how to make this code recognize the specific asp address?
<SCRIPT>
function Mailit(form) {
document.location.href=("mailto:" + form.address.value + "?subject=A web page to see&body=I found this web page at " + document.location.href + ", which I thought you might like to see.")
return false
}
</SCRIPT>
<FORM name="Recom" onsubmit="return Mailit(Recom)">
<TABLE>
<TR><TD>Recommend this Web page to a friend</TD></TR>
<TR><TD><INPUT type="text" name="address" size="35" value="Enter Email Address">
<INPUT type="button" name="Button" onclick="Mailit(this.form)" value="Send"></TD></TR>
</TABLE>
</FORM>
Thanks very much,
kovalik :)
I am using this code to "email this recipe to a friend". The code itself works great. My problem is that the pages I want to use it on are asp pages. Example:
http://www.recipesplus.ca/recipe.asp?recipeID=134
Does anyone know how to make this code recognize the specific asp address?
<SCRIPT>
function Mailit(form) {
document.location.href=("mailto:" + form.address.value + "?subject=A web page to see&body=I found this web page at " + document.location.href + ", which I thought you might like to see.")
return false
}
</SCRIPT>
<FORM name="Recom" onsubmit="return Mailit(Recom)">
<TABLE>
<TR><TD>Recommend this Web page to a friend</TD></TR>
<TR><TD><INPUT type="text" name="address" size="35" value="Enter Email Address">
<INPUT type="button" name="Button" onclick="Mailit(this.form)" value="Send"></TD></TR>
</TABLE>
</FORM>
Thanks very much,
kovalik :)