Mailto function with variables from inputfields HTML, JavaScript

Published: 24 August 2021
on channel: Jake Spence
6,203
66

JAVASCRIPT:
function SendMail()
{
var body = document.getElementById("Message").value;
var SubjectLine = document.getElementById("Subject").value;
window.location.href = "mailto:mail@example.com?subject="+SubjectLine+"&body="+body;
}


On this page of the site you can watch the video online Mailto function with variables from inputfields HTML, JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Jake Spence 24 August 2021, share the link with friends and acquaintances, this video has already been watched 6,203 times on youtube and it was liked by 66 viewers. Enjoy your viewing!