Modals
suggest changeSyntax
- alert( message )
- confirm( message )
- prompt( message [, optionalValue])
- print()
Remarks
alert, confirm, and prompt are browser-only. They stop the page until the dialog closes. Current browsers may suppress repeated prompts. print() opens the print dialog. The current specification is https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#user-prompts.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents