JavaScript allows us to change the text in the status bar of the window through the window.status property.
We will now show you how to place a welcome message on the status bar as soon as your page finishes loading. The event handler goes in the opening <body> tag
1. Put this code in the body of your HTML document:
<body onload=”window.status= `Welcome to my Page!!!’ “>
Notice that the text in the bottom of the browser window now displays ” Welcome to my Page!!!” whenever the mouse pointer is not on a link. The onload event handler is an attribute of the body tag, and it tells the browser what to do after the body of the page is done loading. You could also use this effect in conjunction with a mouse event handler to change the status bar text when the mouse rolls over certain links or images, feel free to explore effects like that on your own.
Cutting and Pasting Example Scripts into your Page
Frequently people use existing JavaScript that can be pasted into their code for certain effects, features, etc.
There are large archives of free scripts available online for your use. For any of these effects, you simply cut-and-paste the appropriate code that is given into the appropriate place in your web page.
