开发者

Custom protocol handlers in Chrome

开发者 https://www.devze.com 2023-04-04 04:46 出处:网络
Is it possible to register a custom protocol handler in Chrome? This code works in Firefox, but not chrome:

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

navigator.registerProtocolHandler("random开发者_Go百科",  
                                  "https://www.example.com/?uri=%s",  
                                  "Random Protocal");


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

0

精彩评论

暂无评论...
验证码 换一张
取 消