Canvas 2D Web Apps/User Prompts

From Wikibooks, open books for an open world
Jump to navigation Jump to search

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

< Canvas 2D Web Apps

Unless stated otherwise, all example source code on this page is granted to the public domain.