Which Window object method is used to display message in a dialog box?
A
alert()
B
prompt()
C
message()
D
none of the mentioned
Correct Answer: alert()
The Window object also defines methods like alert(), which displays a message in a dialog box.