This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Caută ajutor

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Află mai multe

Acest fir de discuție a fost arhivat. Adresează o întrebare nouă dacă ai nevoie de ajutor.

javascript:navigator.registerProtocolHandler(‘mailto’,’http://mail.live.com/secure/start?action=compose&to=%s','Windows Live Mail’); Why doesn't this work so i can set firefox to recognise web mailto links

  • 13 răspunsuri
  • 25 au această problemă
  • 12 vizualizări
  • Ultimul răspuns de cor-el

more options

Why doesn't this link work so i can set firefox to recognize web mailto links?

javascript:navigator.registerProtocolHandler(‘mailto’,'http://hotmail.msn.com/secure/start?action=compose&to=%s’,'Hotmail’);

Why doesn't this link work so i can set firefox to recognize web mailto links? javascript:navigator.registerProtocolHandler(‘mailto’,'http://hotmail.msn.com/secure/start?action=compose&to=%s’,'Hotmail’);

Toate răspunsurile (13)

more options

Did you first enable that command by setting the pref gecko.handlerService.allowRegisterFromDifferentHost to true on the about:config page ?

Do not forget to reset the pref gecko.handlerService.allowRegisterFromDifferentHost to false after you have added Hotmail.

more options

Yes i did set it to true but to no avail.

more options

Did you check if that makes Windows Live available as a choice for mailto in Tools > Options > Applications ?

more options

this worked as recently as 7.0, but in 7.01 i can't get javascript:navigator.registerProtocolHandler to work with any mailto: targets. Did this break in 7.01?

more options

In Firefox 6 you can no longer run JavaScript code via the location bar.

See:

Set the pref gecko.handlerService.allowRegisterFromDifferentHost to true on the about:config page.

You need to create a new bookmark (e.g. on the Bookmarks Toolbar) and paste the full code including javascript: to the location field of that bookmark.

Click that bookmark to run the code and confirm that you want to add the new mailto provider.

Do not forget to reset the pref gecko.handlerService.allowRegisterFromDifferentHost to false after you have added that mail provider.

more options

I have followed this procedure on Firefox 8.0 running windows 7 and can't get it to work. I don't get the popup to "add hotmail" or "add application" and the hotmail entry isn't in the drop down list in applications either after doing the "about:config" then entering "gecko" entry in the filter field and changing the false to true etc.

Is it possible to make this work in Firefox 8.0 and if not should I download an older version so I can do this procedure and if so what version would work? I'm interested in using the "mail to" reply links like in Craigs list and can't seem to find out how to add hotmail to the drop down so I don't have to copy and paste the "mail to" links in the ads into a hotmail email to send them.

Thanks for any help in getting hotmail to be the default email.

Modificat în de somehelp

more options

Did you create a bookmark with the javascript code?

javascript:navigator.registerProtocolHandler("mailto","http://hotmail.msn.com/secure/start?action=compose&to=%s","Hotmail");
more options

Yes, I used that same link you posted including substituting the " for ' and I still didn't get the pop up for "adding hotmail"

I even tried it with the double quotes too and nothing. No drop down saying "add hotmail".

Modificat în de somehelp

more options

The JavaScript code also works for me if I paste it in the Firefox > Web Developer > Scratchpad (Shift + F4) and issue Execute > Run


Start Firefox in Diagnose Firefox issues using Troubleshoot Mode to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).

more options

Thanks very much. I did it as you recommended and got the drop down this time that I wasn't getting before and Hotmail is installed now in the mailto drop down now.

I can't thank you enough!!!!

Do I have to do the "about:config" and the "gecko" operation and change the "true" back to "false" now ?

Modificat în de somehelp

more options

You're welcome


Quote: Do I have to do the "about:config" and the "gecko" operation and change the "true" back to "false" now ?

Yes.

Modificat în de cor-el

more options

Thanks again!

Just curious here about this action. What would happen if I left it at "true"?

I already changed it back to "false" just now and it dropped down in the list about 6 positions instead of being the first entry like the text said it would be. Is this Normal?

Thanks again.

Modificat în de somehelp

more options

If that setting is true then maybe websites are able to register a protocol, but I'm not sure about that.


It is possible that you are sorting entries via another column the Status or Value column that changed its value. Best is to sort for name by clicking the Preference Name header.