Function “alert”
function alert(message[, title])
Displays a message box to the user
Parameters
| Name | Type | Description |
|---|---|---|
message | string | The message to display |
title | string (optional) | Title bar caption of the message box |
Example
alert("Hello, World!", "Welcome");