Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q134

Feedback on: irt.org FAQ Knowledge Base Q134

Sent by Paul on April 08, 2002 at 00:25:20: - feedback #3759

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.


Sent by The BG'er on Saturday June 23, 2007 at 14:57:24 - feedback #4733

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>






©2018 Martin Webb