
window.alert()
function in web browser JavaScript. The popup is
modal.
It is useful when you forcefully let the user know that something has happened.
API
TypeScript
Options
title : string
The title of the alert pop-up.
text : string
The text of the alert pop-up.
okLabel? : string
The label for the “OK” button.
Defaults to "OK"
.