Nuestros voluntarios aún no han traducido este artículo al Español. ¡Únete a nosotros y ayúdanos a traducirlo!
También puedes leer el artículo en English (US).

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The Navigator.permissions read-only property returns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.


permissionsObj = globalObj.navigator.permissions


A Permissions object.


navigator.permissions.query({name:'geolocation'}).then(function(result) {
  if (result.state === 'granted') {
  } else if (result.state === 'prompt') {
  // Don't do anything if the permission was denied.


Specification Status Comment
Permissions Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Chrome Full support 43Edge ? Firefox Full support 46IE ? Opera Full support YesSafari ? WebView Android No support NoChrome Android Full support 43Edge Mobile ? Firefox Android Full support 46Opera Android Full support YesSafari iOS ? Samsung Internet Android Full support Yes


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

See also

Etiquetas y colaboradores del documento

Colaboradores en esta página: mdnwebdocs-bot, connorshea, chrisdavidmills, poiru
Última actualización por: mdnwebdocs-bot,