What is Alert Method in Window Object in Javascript ?

Alert dialogs are typically used when users has to be made aware of something that they have no control over, such as errors.

Often alert dialogs pops up when the user enters invalid data into a form.

When alert() is called,the browser creates a system message box that displays the given text with an OK button.

For example, the following line of code causes the message box in to be displayed..

alert(“message..”);



You May Interest

JavaScript Powering a Number

What is Prototype in Javascript ?

What is Difference Between Undefined and Null in Javascript ?

What is Prototypal Inheritance in Javascript ?

What are the Variable Naming Conventions in JavaScript ?