I've been experimenting with the HTML dialog element recently, for example in my Prompts.js JavaScript library.
It’s time for a redesign, so things may get a little weird around here. Read the release notes to track the progress, or view the old version.