|
August 22, 2000 Mailing a Web Page Tips: August 2000
Yehuda Shiran, Ph.D.
|
|
You send a mail message with the mailto: URL. Open your mail application and type mailto: in your browser's Address field. A new message form will open and wait for your input. You can prefill the form by providing the subject and body parameters of the mailto: URL. You provide a parameter in the URL by prepending the parameter name with a question mark (?), followed by an equal sign (=). For example:
Notice that there should not be any spaces between the parameter name and the equal sign.
To send the current page's URL in a mail message, we just assemble the current
To make the message even more attractive, we decorate both its subject and its body with the current page's title,
Somewhere on the page you need to provide a link that calls the above function, like this: <A HREF = "javascript:mailpage()">E-mail This Page</A> E-mail This Page This tip has been contributed by Paul Hansford.
People who read this tip also read these tips: Look for similar tips by subject: |