This is the second JS project by CodeWithBubb.
This is to open and close a dialog element. It uses the built in show()
, showModal()
and close()
methods which work with dialog elements. The close()
method is applied to the <dialog>
element, which is the whole page when the showModal()
method is used to open it.