0

How to append location.href url in mailto body.

  appendToUrl3 =window.location.href;
 <a href="mailto:googlehelp_r@gmail.com?Subject=Help%20Google-%20Results&body="+appendToUrl3 >GoogleResults</a>

When i do console.log(appendToUrl3); url is printing correctly but in the mail body url is not getting appended - Its still blank body

I tried the below ones it append this in the body +appendToUrl3

 <a href="mailto:googlehelp_r@gmail.com?Subject=Help%20Google-%20Results&body=+appendToUrl3">GoogleResults</a>

Please help to append the url in the body of mailto

4

1 に答える 1