Javascript Dialog Box

tutorial and example
tutorial and example

JavaScript Dialog Box

A JavaScript dialog box is predefined function which is used to perform different task.

Some functions are used in JavaScript Dialog box.

Function Description
alert() To give alert message to user
prompt() To input value from used
Confirm() To get confirmation from user before executing

Alert()

Alert() function in JavaScript is used to give an alert message to the user.

Example

Try Now

prompt()

Prompt function in JavaScript is used to get input from user.

Example

Try Now

Confirm()

Confirm function in JavaScript is used to get confirmation from user before executing some task.

Example

Try Now