alert()
This method is used to display an alert box with the text you desire. One OK button is displayed, which returns a value of TRUE when clicked.
syntax:
alert(messageText)
This method is used with the following:
window