Feature detection (web development): Difference between revisions

Content deleted Content added
m Undetectables: clean up; HTTP→HTTPS for Github using AWB
m Techniques: clean up, typo(s) fixed: ’s → 's
Line 13:
As [[JavaScript]] is the most prevalent [[scripting language]] in web browsers{{Citation needed|date=March 2014}}, many feature detection techniques use JavaScript to inspect the [[Document Object Model|DOM]] and local JavaScript environment.
 
The simplest technique is to check for the existence of a relevant object or property. For example, the Geolocation API (used for accessing the device’sdevice's knowledge of its geographical ___location, possibly obtained from a [[GPS navigation device]]) exposes a <code>geolocation</code> property on the <code>navigator</code> object in the DOM; the presence of which implies the Geolocation API is supported:
 
<nowiki>