MDN wants to learn about developers like you:


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.


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


Specification Status Comment
Web Share API Editor's Draft  

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 61 No support No support 48 No support
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile Chrome for Android
Basic support 61 61 No support No support No support 48 No support 61.0

Document Tags and Contributors

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