Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome 使用javascript在chrome中将mailto设置为默认处理程序_Google Chrome_Gmail - Fatal编程技术网

Google chrome 使用javascript在chrome中将mailto设置为默认处理程序

Google chrome 使用javascript在chrome中将mailto设置为默认处理程序,google-chrome,gmail,Google Chrome,Gmail,我想用JavaScript在chrome中将mailto设置为默认处理程序。有没有办法做到这一点。 例如,我的默认处理程序是Outlook,我想用javascript程序将其更改为Gmail 在Gmail中,将以下内容复制并粘贴到浏览器的地址栏中,然后按enter键 天哪,我希望不是……或者如果可以做到,我真的非常希望需要用户确认=/ javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google

我想用JavaScript在chrome中将mailto设置为默认处理程序。有没有办法做到这一点。 例如,我的默认处理程序是Outlook,我想用javascript程序将其更改为Gmail

在Gmail中,将以下内容复制并粘贴到浏览器的地址栏中,然后按enter键


天哪,我希望不是……或者如果可以做到,我真的非常希望需要用户确认=/
javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","Gmail")