DEV Community

Cover image for Using the native web share JavaScript API

Using the native web share JavaScript API

Chris Bongers on July 07, 2022

Did you know there is a native share function you can invoke with JavaScript? You might have seen them around on the internet. If not, I've added ...
Collapse
 
tqbit profile image
tq-bit

Well I'll be damned this looks like a cool api to use. Hope it'll soon receive more browser support.

Thanks a lot for sharing (y)

Collapse
 
dailydevtips1 profile image
Chris Bongers

Yep!
Pretty cool to use and your giving the end user a native feel, which is always a bonus.

Collapse
 
lukeecart profile image
Luke Cartwright

Thank you very much for sharing!
Excuse the pun 😅

Collapse
 
dailydevtips1 profile image
Chris Bongers

Haha love it Luke. 😂

And you are welcome 💪

Collapse
 
rafaelcg profile image
Rafael Corrêa Gomes

That's amazing, thank you for sharing it!

Collapse
 
dailydevtips1 profile image
Chris Bongers

Glad you enjoyed this Rafael 🥳

Collapse
 
krishnaagarwal profile image
Krishna Agarwal

Amazing post as always!

Collapse
 
dailydevtips1 profile image
Chris Bongers

Thanks Krishna 🥳

Collapse
 
timhuang profile image
Timothy Huang

Cool! It’s easy to call sharing url from web browser. Thanks for sharing.

Collapse
 
dailydevtips1 profile image
Chris Bongers

Glad you enjoyed it Timothy 🙏

Collapse
 
fayomihorace profile image
Horace FAYOMI

That is great, thanks for sharing the share feature ^_^.

Collapse
 
dailydevtips1 profile image
Chris Bongers

Glad you enjoyed it 💖

Collapse
 
sebadopico profile image
sebadopico

Amazing post

Collapse
 
dailydevtips1 profile image
Chris Bongers

Thank you 🙏

Collapse
 
mrcaidev profile image
Yuwang Cai

Not supported yet on the latest Chrome (103) :( Hope browsers could catch up soon. Thanks for sharing!

Collapse
 
dailydevtips1 profile image
Chris Bongers

Yep, well I personally think for browsers it's fine, for mobile is where it really shines.
I still kind of like that we can have our own more advanced fallback on desktop.

Collapse
 
tony199555 profile image
Tony Yu

I am surprised that Safari has full support of web share API before any other major browser lol.

Thanks for sharing (:wink)

Collapse
 
dailydevtips1 profile image
Chris Bongers

Yeah crazy to think Safari does it out of all the modern browsers 😂

Collapse
 
leeuw profile image
leeuw

amazing!! thanks 👍

Collapse
 
ra1nbow1 profile image
Matvey Romanov

So great. Thank you

Collapse
 
dailydevtips1 profile image
Chris Bongers

Happy to you enjoyed it Matvey 🥳