---
title: "Discussion on \"JavaScript Tips: Web share Api\" | Hashnode"
description: "Discussion on \"JavaScript Tips: Web share Api\". const shareData = {\n  title: \"au.mirza\",\n  url: \"https://www.instagram.com/au.mirza\"\n};\n\nconst btn = document.getElementById(\"share\");\nbtn.addEventListener(\"click\", shareHandler);\n\nfunction shareHandler() {\n  if (navigator.share && navigator.canShare..."
url: "https://hashnode.com/posts/javascript-tips-web-share-api/63e526eee0318db1df25417e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript Tips: Web share Api](https://blog.ahmadullah.in/javascript-tips-web-share-api?utm_source=hashnode&utm_medium=feed)

const shareData = { title: "au.mirza", url: "https://www.instagram.com/au.mirza" }; const btn = document.getElementById("share"); btn.addEventListener("click", shareHandler); function shareHandler() { if (navigator.share && navigator.canShare...

Feb 9, 2023 · 1 min read · blog.ahmadullah.in  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js](https://hashnode.com/tag/js)
-   [#tips](https://hashnode.com/tag/tips)

## Written by

[Ahmadullah Mirza](https://hashnode.com/@aumirza)

@aumirza · India

  
[View profile](https://hashnode.com/@aumirza)

Frontend developer, discovering the web.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
