shanuragu
10-16-2003, 02:28 AM
Hi
I am planning to implement the following functionality in my web site.
<html>
<head>
<script language="javascript">
function mailThisUrl()
{
mail = "mailto:" + "document.address.value?subject=This page might interest you";
mail += "&body=" + "http://www.bhagavadgita.com";
location.href = mail;
}
</script>
</head>
<body>
Recommend my page to a friend!
<br />
Recipient's e-mail address
<br />
<input type="text" name="address" value="" size="25">
<input type="button" value="Send" onClick="mailThisUrl();">
</body>
</html>
I am unable to display Address in the email box To: field
How can I fetch the text value without using asp???
shara
I am planning to implement the following functionality in my web site.
<html>
<head>
<script language="javascript">
function mailThisUrl()
{
mail = "mailto:" + "document.address.value?subject=This page might interest you";
mail += "&body=" + "http://www.bhagavadgita.com";
location.href = mail;
}
</script>
</head>
<body>
Recommend my page to a friend!
<br />
Recipient's e-mail address
<br />
<input type="text" name="address" value="" size="25">
<input type="button" value="Send" onClick="mailThisUrl();">
</body>
</html>
I am unable to display Address in the email box To: field
How can I fetch the text value without using asp???
shara