Welcome visitor
* Login
* Register
It is currently September 16th, 2019, 12:00 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
  Create an email with the entry of an input only
PostPosted: November 27th, 2009, 7:09 am 

Posts: 13
Do you know how to make one input field the body of an email? But I only want to send the value of the form not the name of the field and that stuff.
Thanks.


Top
 Profile  
 
  Re: Create an email with the entry of an input only
PostPosted: November 27th, 2009, 8:11 am 

Posts: 117
This uses 2 inputs, one for the subject and the other for the body of the mail.
<input id="subject">
<textarea id="content"></textarea>
<input type="button" value="send mail" onclick="sendit();">
<script type="text/javascript">
  function sendit(){
  subject=document.getElementById('subject').value;
  text=document.getElementById('content').value;
  window.open('mailto: gogogo@mail.now?Subject='+subject+'&body='+text);
  }
</script>


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