jQuery alert()

In an application alert boxes are used to provide information at run time.
These information helps user of applications to do tasks further with more
information at runtime. Alert box can be popped up after happening an event such
as click event or after completing a line of code execution. .click() function
in jQuery helps in to bind the click event, JavaScript event.

Example

Here I am giving a simple example which will demonstrate you about how an
alert box can display information. In this example we will display an alert box
after clicking a button and the click event is generated. When a user will
execute this example and click on the button then the alert box will be
displayed.