Canvas 2D Web Apps/User Prompts

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,  , and  ).