<html>
<body>
<h1>The HTML Dialog Object</h1>
<h2>The open Property</h2>
<p>Click the button to open a dialog window.</p>
<button onclick="myFunction()">Try it</button>
<dialog id="myDialog">This is an open dialog window</dialog>
<script>
function myFunction() {
document.getElementById("myDialog").open = true;
}
</script>
</body>
</html>