473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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 36840
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: john.burton | last post by:
Is there a way to make a handler in python presumably using the win32 extensions to handle URLS of a specific type when they are given to windows? For example if I want to handle...
1
by: Dom Leonard | last post by:
Hi all, I occasionally use the javascript protocol in window.open to retrieve a window property of the opener for use as HTML source: window.htmlSrc="<html>...blah ....<\/html>";...
2
by: Joe W Larson | last post by:
I've been up and down trying to figure this one out with no luck. Is it possible to have a mailto link or some other way with Javascript that can send the HTML content of the current page or of an...
6
by: clintonG | last post by:
Example: <a href="mailto:somebody@somewhere.com>Send Mail</a> I've been trying to find documentation via W3 and the RFCs but I have yet to find documentation that explains how a click event on...
4
by: Goo | last post by:
Hi. Looking for some advice. I have a simple javascript that gathers email from a HTML form and then upon the submit button click, it opens a default mail window with "mailto" and inserts...
6
by: kelvlam | last post by:
Hello, I'm a new begininer with JavaScript. I'm trying to figure out which is the best approach, and to understand the differences between them. I have a <Aelement that's suppose to either...
3
by: moho | last post by:
Hi, I tried to do this: mailstr = "mailto:recipient@domain.com?subject=subjecextract&body=assg"; mailform = document.getElementById("mailform"); mailform.setAttribute('action',mailstr);...
0
by: OwfAdmin | last post by:
Sometimes there is a business need of integrating you windows application with your web application in a manner that you can directly invoke your windows application from the web application with...
3
by: mportman300 | last post by:
Have pity on me.. i have been doing html, css, javascript squarely over 2 years... and am now doing a family project.. in my project i have decided to use a context menu script, its a menu that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.