Question

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");
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top