I have an app that doesn't work well with the new version of Chrome, so I want it to show an html page asking the users to access with other browser while fixing it.
How can I make it so it knows what to show if accessing from Chrome?
There is a little plugin, called bowser.js
Here is the code of bowser.js: bowser.js
Just add the script:
<script type="text/javascript" src="./js/bowser.js"></script>
And then in your JavaScript code:
if (bowser.msie) {
//for internet explorer
}
else {
//for others browsers
}
Note: You can check for most browser, and versions of those....
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.