This is a simple demo of replacing modal browser dialogs with HTML. To see how it works, see the source code in custom-dialog.js
Try creating new variables, creating variables with names already in use, or deleting multiple blocks on the workspace.