Widget:DialogButton
Aus ZUM-Unterrichten
<dialog id="dialog_"><form method="dialog"><button autofocus>schließen</button></form></dialog> <script> (function(){
const link = document.getElementById('dialog_button_' + ); const dialog = document.getElementById('dialog_' + ); if(!link){return;} if(!dialog){return;} link.addEventListener('click', function(e){ dialog.showModal(); }, {});
})(); </script>