browser-feature-detection
the best way to detect browser in js
There are lots of ways for browser detecting in JavaScript. As far as i know, using navigator.userAgent or det开发者_高级运维ecting features (like XMLHttpRequest) and so on.[详细]
2023-04-11 22:56 分类:问答Detecting browsers that don't support onunload/onbeforeunload
Of all the browsers, it seems that only Opera doesn\'t support onunload/onbeforeunload events. (It\'s been fifteen years now, Opera!) Solutions for this issue have been covered many times, here for ex[详细]
2023-04-08 10:26 分类:问答iPad version detection in JavaScript
Is it possible to check for the iPad version (1 or 2) in a web application? As the user agent looks identical (see http://www.webtrends.com/Support/KnowledgeBase/SolutionDetail.aspx?Id=50140000000acbi[详细]
2023-04-04 07:10 分类:问答How to detect `focusin` support?
Thanks to Perfection kills, we can use the following JavaScript to detect event support: function hasEvent(ev) {[详细]
2023-04-03 02:06 分类:问答How do I find browser plugins that are installed but not active/enabled?
I have seen solutions to find out if a plugin like reader or flash in installed. Is it possible to detect if a plugin is activated or not through开发者_JAVA百科 JavaScript?[详细]
2023-03-26 02:14 分类:问答Is there a way to detect 3G and 2G connections speed on mobile phones and handheld devices?
Is there a way to detect 3G and 2G connections on mobile phones and handheld devices? Like If I want to deliver High-end Website when u开发者_高级运维ser is on 3G and Highly optimized version if user[详细]
2023-03-24 05:13 分类:问答User analytics based on feature support instead of browser versions, etc
If you have done any CSS or JavaScript you should know to rely on browser features and not brand and version.[详细]
2023-03-13 09:47 分类:问答How can I tell how a website is determining if the browser has JS enabled?
We have a Perl script that emulates a browser using LWP::UserAgent to login to a website and download some data. Recently that website was changed so that you have to have JavaScript enabled in order[详细]
2023-03-05 13:58 分类:问答Reliably detecting <img> tag support for SVG
I\'m currently doing some redesign of a website, basically just upgrading it to a more up-to-date look and trying to make it as resolution independent as possible, and in the name of resolution indepe[详细]
2023-01-24 09:18 分类:问答Javascript: How can I delay returning a value for img.complete
I\'ve written a script to test for SVG support in the IMG tag: function SVGinIMG() { var SVGdata = \'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNzUiIGhl[详细]
2023-01-16 19:52 分类:问答