Canvas 2D Web Apps/User Prompts
||This section is a stub.
You can help Wikibooks by expanding it.
In HTML5, web apps are allowed to prompt users for input with simple dialog boxes, in particular an alert dialog (message and OK button), a confirm dialog (message, OK, and Cancel button), and a prompt for textual input (message, default text, OK, and Cancel button). W3C has published recommendations for a Web Application API for User prompts. In the Mozilla Developer Network, see the window object (functions