Web Share API
The Web Share API allows you to share text, links, and even files from a web page to other apps installed on the device.
async function shareHandler() { navigator.share({ title: "Tapajyoti Bose | Portfolio", text: "Check out my website", url: "https://...", }); }
NOTE: To use the Web Share API, you need an interaction from the user. For example, a button click or a touch event.