Web Share API
native sharing mechanism
There’s an interface to invoke native sharing mechanism of the device through Navigator: share() method. Most browsers and OS already support this method these days. Hence, this method is still limited in support (especially on Linux or some other OS).
const shareData = {
title: "Hello",
url: "https://your-url.com",
};
await navigator.share(shareData);References:
