I need to create an anchor with an href="mailto:...&body=..." with newlines in the body of the e-mail. When the e-mail client opens it should show text on different lines.

My JavaScript detects windows vs. *nix and assigns the correct newline character(s). But on Windows when outlook opens there are no newlines.

I could use a button or some other control besides an anchor if that will work, but mailto: is convenient from an anchor. If there is a cross platform javascript function to open the e-mail client that would work too.

How do I get the correct newlines for the client's operating system into an e-mail from javascript?