At the very top level of the DOM object tree is the "window" object. The window object represents the browser window where the HTML Document is displayed.
The window object has a method called alert(). This method displays a popup window with the text provided for the first method "Parameter".
A parameter is a value passed to a function or method which modifies how the function or method operates.
The following Javascript can be executed before the page is loaded by using the "script" element.
<head> <script> window.alert("Hi!"); </script> </head>