Figure 1
provides the JavaScript code for creating an alert box:
Figure 1. JavaScript Alert Box.
alert('Hello!');