📜 ⬆️ ⬇️

Open the "mailto:" links in Gmail



In June 2011, the Chrome browser learned how to handle mailto: and webcal: . This is one of those rare cases where Chrome is the latest among all browsers to introduce some useful technology: for example, this feature has been present in Firefox since 2008 (!) Of the year, from version Firefox 3.

This is all the more surprising because Google is most interested in having links like mailto: and webcal: transmitted not into an offline program, but into a web application.

The browser can handle not only mailto: but any other, arbitrary special links. At the same time, the entire HREF is simply sent to the registered handler (handler), replacing %s , as shown in the example.
')
 navigator.registerProtocolHandler("mailto", "https://www.example.com/?uri=%s", "Example Mail"); 

See the installation manual for web handlers on your page.

Disable Web Handlers can be in the settings under the Hood in the section Content settings .



You can also specify in which application to send these links.



UPD . Judging by updates.html5rocks.com/2011/06/Registering-a-custom-protocol-handler , this function has been in the browser since June last year. The only news is that Gmail has injected the appropriate code. A couple of months ago, the same code appeared on the Google Calendar.

Source: https://habr.com/ru/post/139068/


All Articles