FrontEnd.ro logo
Elementul <dialog>

<dialog>
  <p> Finally, a native dialog! </p>
  <button> Great! </button>
</dialog>
<script>
  let dialogEl = document.querySelector('dialog');
  
  dialogEl.show();
  dialogEl.showModal();
</script>