Navigator.canShare

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

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The canShare() method of the Navigator interface returns true if a call to Navigator.share() would succeed.

Syntax

var canShare = Navigator.canShare;

Parameters

None.

Return value

A Boolean.

Exceptions

None.

Specifications

Specification Status Comment
Unknown
The definition of 'canShare' in that specification.
Unknown Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
canShareChrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support No

Legend

No support  
No support

Document Tags and Contributors

Contributors to this page: jpmedley
Last updated by: jpmedley,