Home » HTML » Html miscellaneous » Question
  1. ___________ is used to test whether geolocation is supported in old browsers.
    1. Navigator.userAgent
    2. Modernizr.js
    3. Modernizr.geolocation
    4. Modernizr
    5. None of these
Correct Option: A

Since Modernizr is a JavaScript object with methods, we can use Modernizr.geolocation to test whether geolocation is supported. Geolocation API Detects support for the Geolocation API for users to provide their location to web applications.



Your comments will be displayed only after manual approval.