搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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 个回答
  • 25 人有此问题
  • 12 次查看
  • 最后回复者为 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’);

所有回复 (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.

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

由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 ?

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

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

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