I’m a modal
Show the dialog const dialog = document.querySelector("dialog"); const showButton = document.querySelector("#show"); const closeButton = document.querySelector("dialog button"); // "Show the dialog" button opens the dialog modally showButton.addEventListener("click", () => { dialog.showModal(); }); // "Close" button closes the dialog closeButton.addEventListener("click", () => { dialog.close(); });This is the answer to Q1
FAQ 2This is the answer to Q2
FAQ 3This is the answer to Q3
All browsers Speci fi cation stage