Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button type="button" class="sendButton">
- <a href="mailto:?Subject=Sent%20From:%20Your%20Name%20using%20" onSubmit="send_targetTextArea; return false;" target="_top">Send</a>
- </button>
- <textarea class="bodytext">Hello testing</textarea>
- <button class="button">Open Email</button>
- $(document).ready(function(){
- $('.button').on('click',function(){
- var bodytext = $(".bodytext").val();
- window.location.href = "mailto:user@example.com?subject=Subject&body=" + bodytext;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement