Questions tagged [browser-feature-detection]

Feature detection is the practice in web development of determining whether a browser or device supports a certain feature, so as to provide fallbacks for older browsers or allow enhanced functionality in more capable modern browsers.

Feature detection is the practice in web development of determining whether a browser or device supports a certain feature, so as to provide fallbacks for older browsers or allow enhanced functionality in more capable modern browsers.

160 questions
0
votes
0 answers

Is there a feature detection equivalent for ARIA attributes, like aria-owns?

Best practice web development would use browser feature detection to determine if a feature is present and properly supported by a browser, instead of say version detection. For example by using CSS.supports() in JavaScript. Is there a way to…
pzrq
  • 1,626
  • 1
  • 18
  • 24
0
votes
1 answer

Hiding actual window size

I have a problem that requires me to hide/change the actual window size of my browser from the web server. I mean the web server should learn wrong information about my actual agent window size. For instance, If my actual window size is X * Z, the…
MKSOI
  • 49
  • 5
0
votes
1 answer

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 JavaScript? However, those work only when the plugin is active. Is there a way to find out if a plug…
Nagi
  • 76
  • 1
0
votes
1 answer

What is the idiomatic way for javascript code to tell if it will run in the Google app script environment?

I'm working with Google Appscript, and after finally understanding the difference between the V8 runtime, the equivalent of standard library and the Web APIs, I think I developing an ok mental model for what running javascript in appscrpt…
Chris Adams
  • 2,721
  • 5
  • 33
  • 45
0
votes
1 answer

Is there a way in JavaScript to detect if files can be dropped on the used device?

I created a form on a website that allows users to upload files. Users can also drag and drop files onto this form. However, on some devices, it is simply not possible to drag and drop files (e.g. on my iPhone). So I only want to display the text…
0
votes
1 answer

How to use browser feature detection to control video attribute muted?

I'm new to web-development. After researching I found that using user agent styles is unreliable for the website to last long term. I've never used feature detection before but was advised that it was the way to go. So could I get some help getting…
Laiqa Mohid
  • 461
  • 3
  • 14
0
votes
2 answers

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 to log in. How can we tell what the website is…
0
votes
1 answer

Feature detection of (Hyperlink Auditing)

The ping attribute of the a element is used for hyperlink auditing - basically when a link is followed each url listed in the attribute is 'pinged' with a HTTP POST. According to to Can I Use it's supported on all major modern browsers except…
Fowl
  • 4,940
  • 2
  • 26
  • 43
0
votes
1 answer

Using Notification.image or Notification.icon

I'm working on deploying web push for notifications. Everything is working great, but I've come to understand that some browsers do not support Notification.image, or at least do not display said image. However, they all do seem to support…
Chris Pratt
  • 232,153
  • 36
  • 385
  • 444
0
votes
1 answer

Browser detection - checkbox change events

I'm creating a form with some fancy interactivity which depends on the change event of radio buttons. As ie doesn't trigger this event until another element is focused I need to branch my code, but want to go down the feature detection rather than…
0
votes
1 answer

How does Firefox website able to highlight items on the navigation bar?

I am curious to know as when you install mozilla firefox and they open a website to let you tour the features of the browsers and from the click to call actions they are able to highlight options like the hamburger menu on the top right (they even…
0
votes
1 answer

browser feature detection error using (navigator.geoloction)

I have written a script to check if my browser has features. The following script is producing an error: code Issues
Elias Rub
  • 99
  • 3
  • 9
0
votes
0 answers

Detect support for pointer-events:none on SVG

I have found an issue where trying to use pointer-events:none on SVG's in Safari 5.1.7 for Windows does not work, but works perfectly on div's. How would I go about detecting support for this using; Vanilla JavaScript or Modernizr to provide…
0
votes
1 answer

Create multiple builds of the same require.js module

Using require.js and r.js, lets say I have a module, "myModule.js". The r.js docs state that they support integration with has.js such that has: { feature: true } transforms something like: if (has('feature')) { alert('feature…
gxc
  • 4,946
  • 6
  • 37
  • 55
0
votes
0 answers

Is there a way to test if a browser fires scroll events in real time?

iOS 8+ now supports "real" scroll events in Safari, firing off events continuously rather than after the scroll event is complete. This means that previously used hacks to make scroll-based animations and parallax effects work on touch devices…
Yaron
  • 1,867
  • 20
  • 16