Let your visitors save and share your pages on FavURL with a single click. Copy the snippet below and paste it anywhere in your site's HTML — no framework or build step needed.
<!-- Share to FavURL | https://fav-url.com/tools/embed-button -->
<a href="https://fav-url.com"
onclick="this.href='https://fav-url.com?url='+encodeURIComponent(window.location.href);"
target="_blank"
rel="noopener noreferrer"
style="display:inline-flex;align-items:center;gap:6px;background-color:#0ea5e9;color:#ffffff;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:14px;font-weight:500;padding:8px 16px;border-radius:8px;text-decoration:none;cursor:pointer;">
🔗 Share to FavURL
</a>The onclick handler dynamically sets the href to include the visitor's current page URL before the browser follows the link. No external scripts or CDN required.
When a visitor clicks the button, the onclick handler reads window.location.href — the exact URL of the page the visitor is currently on — and appends it to the FavURL base URL as a ?url= query parameter.
FavURL then opens with that URL pre-filled in the Create Link dialog, so logged-in users can instantly save and shorten it. Visitors who are not yet signed in will be prompted to create a free account first.