Function “alert”

function alert(message[, title])

Displays a message box to the user

Parameters

NameTypeDescription
messagestringThe message to display
titlestring (optional)Title bar caption of the message box

Example

alert("Hello, World!", "Welcome");