<a href="mailto:webmaster@example.com">Web Master</a>Navigator: registerProtocolHandler() method / notebook
Navigator: registerProtocolHandler() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
navigator.registerProtocolHandler("mailto", "https://mail.example.org/?to=%s");navigator.registerProtocolHandler(
"web+burger",
"https://burgers.example.org/?burger=%s",
);<a href="web+burger:cheeseburger">cheeseburger</a>