473,799 Members | 3,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="javas cript">
document.locati on.href="MailTo :";
</script>

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

<script language="javas cript">
document.locati on.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.javas cript:

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

<script language="javas cript">
document.loca tion.href="Mail To:";
</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.javas cript:
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.javas cript:
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("ma ilto:")
I hope this solves your problem!

Salutations, Wieger

"Tom" <TC******@Sunli nk.net> schreef in bericht
news:q3******** *********@newsr ead1.news.atl.e arthlink.net...
Evertjan. wrote:
Tom wrote on 20 okt 2003 in comp.lang.javas cript:
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
2832
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 myprotocol://server/id using my own python program? Any suggestions or references would be appreciated.
1
3233
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>"; window.open("javascript:opener.htmlSrc", testWindow); The technique was absolutely needed in NS4.xx to overcome reentrancy problems with document.writing to generated windows, and has been useful
2
12604
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 IFRAME in the page as an email? Here's what I have: ---------------- <HTML> <SCRIPT LANGUAGE="JavaScript"> <!--//
6
2589
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 an anchor tag can launch a client-side e-mail program and populate its To: field with an e-mail address. I've found RFCs that briefly describe mailto but they fail to describe the actual mechanism that enables the functionality.
4
3722
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 some text and form field data, etc, in the body of the email.
6
4701
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 launch a popup window, or it will link you to some dynamic created page. I have declared a global JavaScript function
3
1854
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); mailform.submit(); However the mail only shows the recipient and not the rest of the values.
0
1836
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 custom parameters. e.g. in yahoo, you can directly open the message windows of a user from web site by clicking on "Send IM". Below article explains how we can do this in .net http://www.openwinforms.com/run_exe_from_javascript.html
3
2407
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 pretty much allows for when you right click on a page it shows you different links that the standard right click menu, link here: http://www.dynamicdrive.com/dynamici...ontextmenu.htm What it does exactly is opens a new window with the link that you...
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9078
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.