I\'m required to make a website function exactly the same on other browsers as it does in IE6. Part of the current code looks similar to this:
On the whole, I tend to think security settings will get in your way and would recommend just giving the user a boring old-fashioned mailto link to click. (Edit: Perhaps one set up like Mic suggests.)
That said, I wonder if things become any more reliable if you introduce a delay:
function myFunc() {
location.href = "mailto:test@test.com&body=Hello!";
setTimeout(function() {
location.href = "newPage.html";
}, 500);
}