<dialog id="dialog">
<p>Do you agree to the Terms of Service (link)?</p>
<button id="decline" value="declined">Decline</button>
<button id="accept" value="accepted">Accept</button>
</dialog>
<button id="open">Open dialog</button>HTMLDialogElement: returnValue property / notebook
HTMLDialogElement: returnValue property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.