Exp 16
Exp 16
16
Aim: Develop a web page for implementing a Status bars and Web page protection.
Theory:
Status Bar:
The status bar is located at the bottom of the browser window and is used to display a short message to
visitors on a web page. Developers who are clever to utilize the status bar employ various techniques to
incorporate the status bar in the design of their web page. Some developers display a message on the status
bar when the web page first opens. Other developers might change the message to reflect whatever the
visitor is doing on the web page. For example, if a user is filling registration form then status bar will display
a text as ‘User is on form filling section’.
One can make the status bar message come alive by telling the visitor something about objects the visitor
points to on the web page. The message on the status bar changes as the visitor moves the mouse cursor over
objects on the page. This can be done by using rollover to signal the browser when a different message
should be displayed. An onmouseover event is generated whenever the visitor moves the mouse cursor over
an object on the web page. The browser executes the statement the onmouseover property when an
onmouseover event occurs.
Programs:
1. To display a static message on status bar
<html>
<head>
<script type="text/javascript">
window.status='Welcome to Home Page';
</script>
</head>
<body>
<h1>Hello welcome to JavaScript</h1>
</body>
</html>
Conclusion:
With all the concepts based on Status bar and web page protection , successfully executed all programs with
correct output.