alert

The alert JS Prompts displays a modal alert with the given message, and waits for the user to dismiss it.

Syntax

window.alert(message)

Parameters

message

A string to display in the prompt.

Examples

1 · void

2 · message

confirm

prompt

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu