Function used to exploit the capabilities of the mailto: URL feature of JavaScript.

Syntax

JSV_mailTo(to, body, subject [, cc] [, bcc])

Prototype

n/a

Returns

n/a

Parameters

The mailTo function uses the following argument.

Argument Description
to The e-mail address to which the e-mail is sent.
body The body of the e-mail message.
subject The subject of the e-mail message.
cc The e-mail address to which a carbon copy of the e-mail is sent.
bcc The e-mail address to which a b? carbon copy of the e-mail is sent.

Remarks

The mailto: URL feature of JavaScript is very powerful and underused. One of the reasons for its low usage is that developers are familiar only with its basic features and are not aware of its multiple attribute support. The mailto: URL supports not only the address of the mail message but also its cc, bcc, subject, and body fields. The ability to assemble a whole mail message by script ought to be more popular among those sites promoting their readers to send such things as their feedbacks, bug reports, complaints, and praises.

Dependencies

n/a

Example

The following lines of code

var i = 0;

produce

Comments: