Welcome visitor
* Login
* Register
It is currently January 18th, 2019, 7:34 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  mailto: subject
PostPosted: July 21st, 2009, 9:58 pm 
User avatar

Posts: 52
hi, i've seen this in other pages before and now want to implement this on my site.

Do you know how to populate the subject field on a mail to letter by using a select option from a menu?


Top
 Profile  
 
  Re: mailto: subject
PostPosted: July 21st, 2009, 11:13 pm 

Posts: 117
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Mailto with Subject</title>
<script type="text/javascript">
var h;
function setsubject(a){
h='mailto:address@yourmail.com?subject='+a;
document.getElementById('send').innerHTML='<a href="'+h+'">SEND</a>';}
</script>
</head>
<body>
<select id="sub" onchange="setsubject(this.value);">
<option>Subject</option>
<option value="Complains">Complains</option>
<option value="Arguments">Arguments</option>
<option value="Questions">Questions</option>
</select>
<div id="send">SEND</div>
</body>
</html>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron