This method displays an alert box containing a message and an o.k. button.
Use this method to convey a message that does not require a decision from the user.
window.alert("Welcome to DevGuru.com")window.alert("Welcome to\nDevGuru.com") If you wish to have the text appear on more than one line, you use the \n as a line break.