Feedback on: irt.org FAQ Knowledge Base Q134
Worth:
Very worth reading
Comments:
It is possible to set up an href anchor with no text in the display area, and giving it an ID for scripting purposes, and an href of "". It is effectively invisible on the page.
Then use it programmitically to send emails as desired accessing the HREF attribute. E.g.
<A href="" id="sendEmail"></a>
Then somewhere in JavaScript ..
sendEmail.href='mailto:dahdah@there.com?Subject=This Stuff?Body=Something';
sendEmail.click();
The sendEmail object can be frequently recycled, and the href part can be built programmitically.
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
Try this script for sending email from JavaScript
This script is not original.
Source: http//www.pagetutor.com/
<SCRIPT LANGUAGE=JAVASCRIPT>
<!--
document.write('<A href="mailto:Your_email_address.server?'
+'subject=Contact_Me!"> Contact<BR>Your_Name</A>');
// -->
</SCRIPT>