
defaultStatus & onFocus
Status Line Message
-- hyperlink
test --
< SCRIPT>
defaultStatus
= "Welcome to the Status Bar Page";
</ SCRIPT>
< FORM>
Name:
<INPUT
TYPE="text"
onFocus="window.status='Please
Enter Your Name'">
<INPUT
TYPE="submit"
VALUE="Submit">
</FORM>
<A
HREF="javascript:void(null)"
onMouseOver="status='Hyperlink
Test'; return true;" onMouseOut="status='';">
hyperlink test
</A>
defaultStatus
is a property that specifies default text to appear in the Window's
Status Line when the page is loaded. The Status Line is by default
blank, unless we "write" messages to the Status Line as
demonstrated in the previous examples. However, you can set the
defaultStatus Property to specify a default message to be displayed when
the status is not otherwise in use.
defaultStatus
is used to display semi-permanent messages in the status line. To
display transient messages, use the status Property.
NOTE:
- For some reason with the onFocus,
the window prefix needs to be included with status.
- return true
isn't necessary in this case because we aren't
"overwriting" a default behavior in the text box as we did
with the HREF
|