469,360 Members | 1,577 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,360 developers. It's quick & easy.

JavaScript Which Invokes the URL:MailTo Protocol

Tom
Anybody know how to modify this script to return to the HTML page from
which it was launched?

<script language="javascript">
document.location.href="MailTo:";
</script>

Jul 20 '05 #1
6 36682
Tom wrote on 19 okt 2003 in comp.lang.javascript:
Anybody know how to modify this script to return to the HTML page from
which it was launched?

<script language="javascript">
document.location.href="MailTo:";
</script>


You just open a email client,
you do not leave the browser,
and do not collect 200 euros.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
Tom
Evertjan. wrote:
Tom wrote on 19 okt 2003 in comp.lang.javascript:

Anybody know how to modify this script to return to the HTML page from
which it was launched?

<script language="javascript">
document.location.href="MailTo:";
</script>


You just open a email client,
you do not leave the browser,
and do not collect 200 euros.

Slight problem. The browser(Mozilla Firebird is stand-alone). The
email client(Mozilla Thunderbird) is stand-alone. In this case; how do
you open the email client without leaving the browser? Forget about the
euros!

Jul 20 '05 #3
Tom wrote on 20 okt 2003 in comp.lang.javascript:
Evertjan. wrote:
You just open a email client,
you do not leave the browser,
and do not collect 200 euros.
Slight problem. The browser(Mozilla Firebird is stand-alone). The
email client(Mozilla Thunderbird) is stand-alone. In this case; how do
you open the email client without leaving the browser?


I cannot help you there.

If I click a <a href="mailto:aa@bb.cc"> in my stand-alone IE6 the page is
not changed and my stand-alone Pegasus Mail is invoked for the mailing.

So what do you understand under "leaving the browser?
That the focus is changed to the email client?
Or that the browser is closed?
Forget about the euros!


It is in reference to ancient Basic statement Goto:
"Don't goto Go"
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #4
"Evertjan." <ex**************@interxnl.net> writes:
Forget about the euros!


It is in reference to ancient Basic statement Goto:
"Don't goto Go"


I can't see that reference. I rather think it is a reference to
the game Monopoly: "Go directly to jail. Do not pass go, do not
collection 200 <currency>".

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #5
Tom
Evertjan. wrote:
Tom wrote on 20 okt 2003 in comp.lang.javascript:
Evertjan. wrote:
You just open a email client,
you do not leave the browser,
and do not collect 200 euros.

Slight problem. The browser(Mozilla Firebird is stand-alone). The
email client(Mozilla Thunderbird) is stand-alone. In this case; how do
you open the email client without leaving the browser?

I cannot help you there.

If I click a <a href="mailto:aa@bb.cc"> in my stand-alone IE6 the page is
not changed and my stand-alone Pegasus Mail is invoked for the mailing.

So what do you understand under "leaving the browser?
That the focus is changed to the email client?
Or that the browser is closed?

In my situation; I wish to invoke the email client so that I can get
mail, read mail, send mail, read newsgroups, etc. That's the purpose of
the javascript. By specifying mailto with no target, it causes the
application(in my situation; this is the email client), which is
specified under open under the registered file type url:mailto protocol,
to be invoked. This works fine until I exit the email client and return
to the browser. I return to a blank page instead of the page that the
HTML page, which contains the script, was invoked from.
Forget about the euros!

It is in reference to ancient Basic statement Goto:
"Don't goto Go"


Jul 20 '05 #6
Hello there, Tom,

Maybe you shuld use this:
window.open("mailto:")
I hope this solves your problem!

Salutations, Wieger

"Tom" <TC******@Sunlink.net> schreef in bericht
news:q3*****************@newsread1.news.atl.earthl ink.net...
Evertjan. wrote:
Tom wrote on 20 okt 2003 in comp.lang.javascript:
Evertjan. wrote:

You just open a email client,
you do not leave the browser,
and do not collect 200 euros.
Slight problem. The browser(Mozilla Firebird is stand-alone). The
email client(Mozilla Thunderbird) is stand-alone. In this case; how do
you open the email client without leaving the browser?

I cannot help you there.

If I click a <a href="mailto:aa@bb.cc"> in my stand-alone IE6 the page is not changed and my stand-alone Pegasus Mail is invoked for the mailing.

So what do you understand under "leaving the browser?
That the focus is changed to the email client?
Or that the browser is closed?

In my situation; I wish to invoke the email client so that I can get
mail, read mail, send mail, read newsgroups, etc. That's the purpose of
the javascript. By specifying mailto with no target, it causes the
application(in my situation; this is the email client), which is
specified under open under the registered file type url:mailto protocol,
to be invoked. This works fine until I exit the email client and return
to the browser. I return to a blank page instead of the page that the
HTML page, which contains the script, was invoked from.
Forget about the euros!

It is in reference to ancient Basic statement Goto:
"Don't goto Go"

Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by john.burton | last post: by
1 post views Thread by Dom Leonard | last post: by
2 posts views Thread by Joe W Larson | last post: by
6 posts views Thread by clintonG | last post: by
6 posts views Thread by kelvlam | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.