This media is not supported in your browser
VIEW IN TELEGRAM
Web Share API | Js
💎 Channel: @htmlcss_channels
const shareData = {
title: "Frontend Portal",
url: "https://t.iss.one/FrontendPortal",
};
const btn = document.querySelector("button");
btn.addEventListener("click", async () => {
try {
await navigator.share(shareData);
} catch (err) {
console.error(err);
}
});
💎 Channel: @htmlcss_channels
👍13❤2