Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
foxfired
8 months ago
|
parent
|
context
|
favorite
| on:
What about using rel="share-url" to expose sharing...
This is what I currently use on my blog and it works particularly well:
navigator.share({ title: "hello", text: "World", url: window.location.href });
Plus if the page has images, the browser will automatically use it.
jeroenhd
8 months ago
[–]
That will work for sharing (except on Firefox), but only Chromium support actually receiving these share events, which is half the spec.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: