"VK" <sc**********@yahoo.coma écrit dans le message de news:
11**********************@42g2000cwt.googlegroups.c om...
jim wrote:
Hi,
I can't gte accents in the subject and body fields of an e-mail !
Because you have to escape the string values: either by yourself using
escape() method or let do it to a form.
This is my code :
document.location.href = 'mailto:we*******@mysite.com
Uhm... "Navigate browser to e-mail message"... Conceptual... but rather
crazy, is not it? ;-)
<html>
<head>
<title>1</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
</head>
<body onload="
var frm = document.forms['email'];
frm.action = 'mailto:sc**********@yahoo.com';
frm.submit();
document.links[0].click();
">
<form name="email" action=""
><input type="hidden" name="subject" value="Always escape mailto data!"
<input type="hidden" name="body" value="?"
</form>
<p
><a
href="mailto:sc**********@yahoo.com?subject=Always %20escape&body=%E9"
>mailto</a></p>
</body>
</html>
thank you for your solution.
the escape function is what I needed.
It works in IE and FF ...but not Opera !