Skip to content

Instantly share code, notes, and snippets.

@abhishekjakhar
Last active April 1, 2019 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhishekjakhar/0754b18b24e55e2fd79f73bdcdff973b to your computer and use it in GitHub Desktop.
Save abhishekjakhar/0754b18b24e55e2fd79f73bdcdff973b to your computer and use it in GitHub Desktop.
Dialog Element With ID instead of Boolean OPEN
<!doctype html>
<html>
<head>
<title>HTML Dialog Element</title>
</head>
<body>
<dialog id="dialogWindow">
<form method="dialog">
<input type="text">
<button type="submit">OK</button>
</form>
</dialog>
<button id="openDialog">Open Dialog</button>
<button id="openModalDialog">Open Modal Dialog</button>
</body>
<script src="app.js"></script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment