B
Brvsra
Javascript Experts,
I know very little about javascript and could use someone's help.
I have created a function to send an email, listed below is the function.
The function works fine, with one exception. When the function is passed,
the popup screen only displays the first part of the querystring.
The email address returns: http://server.something.asp?Test=1
Should return something like this:
http://server.something.asp?Test=1&Test2=2, Can someone tell me why its
doesn't return the complete querystring?
<script language="javascript">
function mailpage()
{
mail_str = "mailto:?subject=Check out the " + document.title;
mail_str += "&body=I thought you might be interested in the " +
document.title;
mail_str += ". You can view it at, " + window.location.href;
window.location.href=mail_str;
}
</script>
I know very little about javascript and could use someone's help.
I have created a function to send an email, listed below is the function.
The function works fine, with one exception. When the function is passed,
the popup screen only displays the first part of the querystring.
The email address returns: http://server.something.asp?Test=1
Should return something like this:
http://server.something.asp?Test=1&Test2=2, Can someone tell me why its
doesn't return the complete querystring?
<script language="javascript">
function mailpage()
{
mail_str = "mailto:?subject=Check out the " + document.title;
mail_str += "&body=I thought you might be interested in the " +
document.title;
mail_str += ". You can view it at, " + window.location.href;
window.location.href=mail_str;
}
</script>