Funkcjonalność tej witryny będzie ograniczona w czasie konserwacji. Jeśli artykuł nie rozwiązuje twojego problemu i chcesz zadać pytanie, to nasza społeczność wsparcia jest dostępna na @FirefoxSupport na Twitterze i /r/firefox na Reddicie.

Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

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 odpowiedzi
  • 25 osób ma ten problem
  • 12 wyświetleń
  • Ostatnia odpowiedź od 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’);

Wszystkie odpowiedzi (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.

Zmodyfikowany przez somehelp w dniu

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".

Zmodyfikowany przez somehelp w dniu

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 ?

Zmodyfikowany przez somehelp w dniu

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.

Zmodyfikowany przez cor-el w dniu

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.

Zmodyfikowany przez somehelp w dniu

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.