2

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");
Test Tester
  • 1,409
  • 4
  • 14
  • 14

1 Answers1

4

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

Zsolt Botykai
  • 50,406
  • 14
  • 85
  • 110
Daniel A. White
  • 187,200
  • 47
  • 362
  • 445