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=50140000000acbiAAA) a standard check by browser does not work her...
Thanks to Perfection kills, we can use the following JavaScript to detect event support:  function hasEvent(ev) {     var elem = document.createElement('a'),         type = 'on' + ev,         supported = elem[type] !== undefined;...
Different web browsers handle the window.close() function differently. IE prompts the user for confirmation, while Firefox and Safari just fail to honor it unless the window was originally opened with Javascript and display a message saying as much i...
What's concept of detecting support of any css pseudo-class in browser through JavaScript? Exactly, I want to check if user's browser supports :checked pseudo-class or not, because I've made some CSS-popups with checkboxes and needs to do...
Can we detect whether a browser supports dropping a file over an <input type="file" />?    For example, this is possible in Chrome but not in IE8.  Modernizr.draganddrop is a possibility but is it the right choice?  I'm not adding a...
With the release of jQuery 2.0, there has been a lot of talk about how to identify if the user is using an IE version which is supporting it or not (jQuery 2.0 only supports IE9 and later).  My question is why a solution like this:  var ie = (functio...
Somebody has already asked my question about detecting SVG support in browsers but there are three leading solutions and not a lot of discussion about the merits of each.  So: which, if any, is best? In terms of portability and correctness, that is....
I was wondering if it's possible to detect if an iOS user is using the webapp, or just visiting the normal way with safari browser.   The reason I want to achieve is that on a iOS webapp when a user click on a link, he will get redirected to the...
I'm really enjoying ES6 generators. Is there a way I can detect generator support in browsers? I know generators might not be in a lot of browsers (or possible no browsers at all) at the moment, but that's OK for my purposes.   I tried:  try...
Is there any way to use JavaScript to detect whether a given browser renders a focused <select multiple> element as a popup or solely as an inline box?  On some platforms, such as the Android Browser and iOS Safari, the use of a popup can be de...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.