Skip to content
Show a friendly tip when the current browser is too old. 老版本的浏览器上访问时提示升级。
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
update-browser
README.md
index.html

README.md

浏览器检测

https://github.com/ded/bowser

下载代码

git clone https://github.com/zhaotoday/update-your-browser.git

使用

将下面代码放在页面最开始的位置,可以按实际情况修改条件语句。

<script src="update-browser/scripts/bowser.js"></script>
<script>
  if (!((bowser.msie && bowser.version >= 10) || bowser.msedge || bowser.webkit || bowser.firefox))
    location.replace('update-browser/index.html')
</script>
You can’t perform that action at this time.