1、桌面找到谷歌浏览器快捷方式,右键打开属性,目标后添加 --kiosk “https:www.baidu,com”
2、js脚本退出浏览器(网址没有发生任何变化才可退出,hash发生变化,无法退出)
if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {window.location.href = "about:blank";window.close();} else {window.opener = null;window.open("", "_self");window.close();}