Getting Gmail to handle all mailto - links with registerProtocolHandler
Stay organized with collections
Save and categorize content based on your preferences.
Paul Irish
If you use Gmail you may become frustrated when you click a mailto: link by accident and now your desktop client of Outlook or Mail starts up.
Thanks to navigator.registerProtocolHandler() (which we've covered here before) you can wire up Gmail as your default mail client for all mailto: links in Chrome and Firefox.
Here's how:
First, open up a Gmail tab. You must do this from the Gmail tab, not your html5rocks one. :)
Open your javascript console (cmd-opt-j on Mac, ctrl-shift-j on Windows) and enter:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2012-02-07 UTC."],[],[]]