JavaScript Which Invokes the URL:MailTo Protocol

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom

    #1

    JavaScript Which Invokes the URL:MailTo Protocol

    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>

  • Evertjan.

    #2
    Re: JavaScript Which Invokes the URL:MailTo Protocol

    Tom wrote on 19 okt 2003 in comp.lang.javas cript:
    [color=blue]
    > 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>
    >
    >[/color]

    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)

    Comment

    • Tom

      #3
      Re: JavaScript Which Invokes the URL:MailTo Protocol

      Evertjan. wrote:[color=blue]
      > Tom wrote on 19 okt 2003 in comp.lang.javas cript:
      >
      >[color=green]
      >>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>
      >>
      >>[/color]
      >
      > You just open a email client,
      > you do not leave the browser,
      > and do not collect 200 euros.
      >[/color]
      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!

      Comment

      • Evertjan.

        #4
        Re: JavaScript Which Invokes the URL:MailTo Protocol

        Tom wrote on 20 okt 2003 in comp.lang.javas cript:[color=blue]
        > Evertjan. wrote:[color=green]
        >> You just open a email client,
        >> you do not leave the browser,
        >> and do not collect 200 euros.
        >>[/color]
        > 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?[/color]

        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?
        [color=blue]
        > Forget about the euros![/color]

        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)

        Comment

        • Lasse Reichstein Nielsen

          #5
          Re: JavaScript Which Invokes the URL:MailTo Protocol

          "Evertjan." <exjxw.hannivoo rt@interxnl.net > writes:
          [color=blue][color=green]
          > > Forget about the euros![/color]
          >
          > It is in reference to ancient Basic statement Goto:
          > "Don't goto Go"[/color]

          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 - lrn@hotpop.com
          Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
          'Faith without judgement merely degrades the spirit divine.'

          Comment

          • Tom

            #6
            Re: JavaScript Which Invokes the URL:MailTo Protocol

            Evertjan. wrote:[color=blue]
            > Tom wrote on 20 okt 2003 in comp.lang.javas cript:
            >[color=green]
            >>Evertjan. wrote:
            >>[color=darkred]
            >>>You just open a email client,
            >>>you do not leave the browser,
            >>>and do not collect 200 euros.
            >>>[/color]
            >>
            >>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?[/color]
            >
            >
            > 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?
            >[/color]
            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.
            [color=blue]
            >[color=green]
            >>Forget about the euros![/color]
            >
            >
            > It is in reference to ancient Basic statement Goto:
            > "Don't goto Go"
            >
            >[/color]

            Comment

            • Wieger

              #7
              Re: JavaScript Which Invokes the URL:MailTo Protocol

              Hello there, Tom,

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

              Salutations, Wieger

              "Tom" <TCNoSpam@Sunli nk.net> schreef in bericht
              news:q3blb.8613 $Uz6.1954@newsr ead1.news.atl.e arthlink.net...[color=blue]
              > Evertjan. wrote:[color=green]
              > > Tom wrote on 20 okt 2003 in comp.lang.javas cript:
              > >[color=darkred]
              > >>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?[/color]
              > >
              > >
              > > I cannot help you there.
              > >
              > > If I click a <a href="mailto:aa @bb.cc"> in my stand-alone IE6 the page[/color][/color]
              is[color=blue][color=green]
              > > 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?
              > >[/color]
              > 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.
              >[color=green]
              > >[color=darkred]
              > >>Forget about the euros![/color]
              > >
              > >
              > > It is in reference to ancient Basic statement Goto:
              > > "Don't goto Go"
              > >
              > >[/color]
              >[/color]


              Comment

              Working...