Nos bénévoles n'ont pas encore traduit cet article en Français. Inscrivez-vous et aidez-nous à réaliser cette tâche !
Vous pouvez également lire cet article en English (US).

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

The Navigator.share() method invokes the native sharing mechanism of the device as part of the Web Share API. If the Web Share API is unsupported, then this method will be undefined.


var sharePromise = window.navigator.share(data);


An object containing data to share. At least one of the following fields must be specified. Available options are:
  • url: A USVString representing a URL to be shared.
  • text: A USVString representing text to be shared.
  • title: A USVString representing the title to be shared.

Return value

A Promise that will resolve once a user has completed a share action. It will reject immediately if the data parameter is not correctly specified.

For example, on Chrome for Android, the returned Promise will resolve after the user chooses an application to share to.


  title: document.title,
  text: 'Hello World',
  url: '',
}); // share the URL of MDN


Specification Status Comment
Web Share API
The definition of 'share()' in that specification.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Chrome No support NoEdge ? Firefox No support NoIE No support NoOpera No support NoSafari Full support 12.1WebView Android No support NoChrome Android Full support 61Edge Mobile ? Firefox Android No support NoOpera Android Full support 48Safari iOS Full support 12.2Samsung Internet Android ?


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.

Étiquettes et contributeurs liés au document

Étiquettes : 
Contributeurs à cette page : mdnwebdocs-bot, mfuji09, jpmedley, connorshea, samthor, jyasskin
Dernière mise à jour par : mdnwebdocs-bot,