javascriptgoogle-chromeprotocol-handler

Custom protocol handlers in Chrome


Is it possible to register a custom protocol handler in Chrome? This code works in Firefox, but not chrome:

navigator.registerProtocolHandler("random",  
                                  "https://www.example.com/?uri=%s",  
                                  "Random Protocal");

Solution

  • According to MDN, it must start with web+, starting with Chrome 13.