Last active
April 1, 2019 16:41
-
-
Save abhishekjakhar/0754b18b24e55e2fd79f73bdcdff973b to your computer and use it in GitHub Desktop.
Dialog Element With ID instead of Boolean OPEN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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