registerProtocolHandler
Limited availability
The navigator.registerProtocolHandler()
method declares a site's ability to handle an address scheme (also known as a protocol). For example, an email site can register to open mailto:
URLs or a VoIP site to open tel:
URLs.
To learn more, see
Navigator: registerProtocolHandler() method,
Navigator: unregisterProtocolHandler() method at MDN.
Compatibility
- Chrome 38 Released on 2014-10-07
- Chrome Android ❌ See crbug.com/40964464
- Edge 79 Released on 2020-01-15
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari ❌ Search for bugs Search for standards position
- Safari on iOS ❌ Search for bugs Search for standards position
Specifications
- HTML Standard (#custom-handlers), from HTML Workstream (WHATWG).