Forum Moderators: open
I want to have a much slicker one, so I created a little bit of html and it works OK. Except, I want to be able to show the current page URL and send that as part of the form to the recipients email address.
How can this be done in js?
<script language="JavaScript" type="text/javascript">function doMail()
{
var loc = location.href
window.location = "mailto:you@yours?body="+loc
}
</script>
<a href="mailto:you@yours.com" onclick="doMail();return false">mail page address</a>