Hi,
I would like to know how to add a new line to the body in mailto (please see the code below), I know a lot of posts suggest "%0D%0A", it works only if I call directly using <a href="mailto:...
However, I need to make a function call, so I need to use open.windows and then it doesn't know what "%0D%0A" means. I need to use a function because I have many mailto in the html page, I just want to call the function and let it concatenates into a mailto. Is there a workaround? Please advice.
******Code***************
<html>
<script type="text/javascript">
function ConCatEmail(strTo , strSub, strBody) {
var strEmail;
strEmail="mailto:" + strTo + "?subject=" + strSub + "&body=" + strBody;
var newwin = window.open(strEmail);
newwin.focus();
}
</script>
<a href="javascript:ConCatEmail('abc@abc.com', 'test Email', 'This is my email body: %0D%0A Nextline')" >here1</a>
</html>