jefgees
02-19-2003, 11:31 AM
thanks to head8k I 've got a nice script offering me an e-mail with a predifined subject. But i still got trouble for getting the ampersand. It shows correct in the browser, but when it comes to printing it into an email everything that starts from the ampersand disappears.
Can someone please help me and tell me what I'm doing wrong??
Thanks.
Hereby the code :
<html>
<head>
<title>predefined subject</title>
<script>
<!--
function changeMailto(i){
mailtoString = "<a href=\"mailto:?subject="+i+" - text ( )\">IMAGE</a>";
document.getElementById('test').innerHTML = mailtoString;
}
-->
</script>
</head>
<body>
<form>
<select onchange="changeMailto(this.options[this.selectedIndex].value)">
<option value="apples & oranges">apples & oranges</option>
<option value="bananas & peaches">bananas & peaches</option>
<option value="stones & rain">stones & rain</option>
</select>
</form>
<br />
<div name="test" id="test"></div>
</body>
</html>
Can someone please help me and tell me what I'm doing wrong??
Thanks.
Hereby the code :
<html>
<head>
<title>predefined subject</title>
<script>
<!--
function changeMailto(i){
mailtoString = "<a href=\"mailto:?subject="+i+" - text ( )\">IMAGE</a>";
document.getElementById('test').innerHTML = mailtoString;
}
-->
</script>
</head>
<body>
<form>
<select onchange="changeMailto(this.options[this.selectedIndex].value)">
<option value="apples & oranges">apples & oranges</option>
<option value="bananas & peaches">bananas & peaches</option>
<option value="stones & rain">stones & rain</option>
</select>
</form>
<br />
<div name="test" id="test"></div>
</body>
</html>