visit
One of the coolest features nowadays on Website World is the Web Share API, this feature provides the ability to share content on a website like we do share action on native applications.
If previously we depend on widgets like AddThis or ShareThis to share a web content, now the widget can already be replaced by this feature. In my personal opinion, the features offered by Web Share API is so much better.
Unfortunately, this feature can only be enjoyed on the Google Chrome platform only, I really hope the future of all browsers can implement this feature on their platform. Here are more details:Browser compatibility
I’m using ngrok already, need to do installation and registration 😭😭😭
You can only invoke the API in response to a user action, such as a click (e.g., you can’t call navigator.share
as part of the page load).
/*** jQuery*/$("#share").click(**function**() { shareThis(); });
Invoke Web Share API on Share Button press. I found a pretty good resource to handle Web Share API: Web Share API handling
Final Result!