Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<h1>Prevent default popover / dialog test</h1>
<p>This page prevents the default action of keydown and pointer events when either the popover or dialog is active.
<button popovertarget=foo>Show popover</button>
<button id=showdialog>Show dialog</button>
<div popover id=foo>This is a popover</div>
<dialog id=dialog>This is a dialog</dialog>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
flackrpro
0viewers