javascript - How to detect Safari, Chrome, IE, Firefox and Opera browsers?

Опубликовано: 07 Октябрь 2024
на канале: Code Samples
55
1

I have 5 addons/extensions for Firefox, Chrome, Internet Explorer(IE), Opera, and Safari.
How can I correctly recognize the user browser and redirect (once an install button has been clicked) to download the corresponding addon?
duck-typing: https://en.wikipedia.org/wiki/Duck_ty...
https://jsfiddle.net/6spj1059/: https://jsfiddle.net/6spj1059/
previous method: https://stackoverflow.com/revisions/9...
-moz-box-sizing: https://developer.mozilla.org/En/CSS/... Conditional compilation: https://msdn.microsoft.com/en-us/libr...
document.documentMode: https://msdn.microsoft.com/en-us/libr...
InstallTrigger: https://developer.mozilla.org/en-US/d...
chrome.webstore: https://developer.chrome.com/extensio...
will be dropped: https://dev.opera.com/blog/300-millio...
Opera 15 has been released: http://blogs.opera.com/desktop/2013/0...
Opera 20+: https://dev.opera.com/extensions/addo...
was introduced in Blink: http://caniuse.com/#feat=css-supports...