Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

onclick send to email javascript

function sendMail() {
    var link = "mailto:me@example.com"
             + "?cc=myCCaddress@example.com"
             + "&subject=" + encodeURIComponent("This is my subject")
             + "&body=" + encodeURIComponent(document.getElementById('myText').value)
    ;
    
    window.location.href = link;
}
Comment

onclick send to email javascript

<textarea id="myText">
    Lorem ipsum...
</textarea>
<button onclick="sendMail(); return false">Send</button>
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to add autoserial number in react js 
Javascript :: o que e window.onload js 
Javascript :: save file as get dimensions puppeteer js 
Javascript :: visio prevent arrows from snapping 
Javascript :: convert milliseconds to hours minutes seconds javascript 
Javascript :: a complex label expression before a colon must be parenthesized 
Javascript :: straforma in string js 
Javascript :: how to update a state with an array react 
Javascript :: copy Konva Transform object 
Javascript :: TOTAL 
Javascript :: javascript split domain 
Javascript :: tower defense bullet following enemy with range javascript 
Javascript :: what is react headroom 
Javascript :: how to disable gravity for an object in matter.js 
Javascript :: select div with specific class not all divs jquery 
Javascript :: persian calender for react-native 
Javascript :: jQuery form upload 
Javascript :: everything about fetch 
Javascript :: finalGrade % 5 && <38 
Javascript :: firebase check if key exists javascript 
Javascript :: New year chaos solution 
Javascript :: validator.contains 
Javascript :: There is only one value in JavaScript that is not equal to itself, and that is NaN (“not a number”). 
Javascript :: update on zoom is not working google-map-react 
Javascript :: cookies in electron 
Javascript :: H.C.F Calculation Program 
Javascript :: waiting for the value from use effect 
Javascript :: currentContract.transferFrom is not a function 
Javascript :: How to Compare Strings Using Mathematical Operators 
Javascript :: aboutreact axios 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =