Welcome to ITM Web100 Training Program


Window Object Model

The Window object introduces many properties, methods, and events that allow the VBScript programmer to access the browser window.

Customizing the status bar You can use the defaultStatus property to determine the text that will appear in the browser window's status bar by default.

Customizing the status bar


(This code modifies the status bar at the bottom of the window)


The code:

<HTML>
<HEAD><TITLE>Customizing the status bar</TITLE></HEAD>

<SCRIPT LANGUAGE="VBSCRIPT">
<!--
  Sub Window_onLoad
    defaultStatus = "ITM is proud that its making big-money!"
  End Sub
-->
</SCRIPT>

<BODY BGCOLOR="#FFFFFF">

</BODY>

</HTML>

Describing links in the status bar When used with the Link object, the status property can provide information about hyperlinks as the mouse moves over them. Describing links in the status bar


Nav menu
Big Tent Media Labs
HipMama
Internet Nexus


The code:

<HTML>
<HEAD><TITLE>Describing links in the status bar</TITLE></HEAD>

<SCRIPT LANGUAGE="VBSCRIPT">
<!--
  Sub Window_onLoad
    defaultStatus = "Itm is proud that its making big-money"
  End Sub

  Sub aBigTent_onMouseOver
    Window.status = "Big Tent Media Labs is a publishing company specializing in twingling!"
  End Sub

  Sub aHipMama_onMouseOver
    Window.status = "Hip Mama is a cool parenting 'zine from San Francisco!"
  End Sub

  Sub aNexus_onMouseOver
    Window.status = "The Internet Nexus is the home of WinInfo, your source for Windows news and information!"
  End Sub

  Sub aSuzuki_onMouseOver
    Window.status = "Check out Suzuki Music for all of your music needs!"
  End Sub
-->
</SCRIPT>

<BODY BGCOLOR="#FFFFFF">

<B>Nav menu
<BR><A HREF="http://www.bigtent.com" NAME="aBigTent">Big Tent Media Labs
<BR><A HREF="http://www.hipmama.com" NAME="aHipMama">HipMama
<BR><A HREF="http://www.internet-nexus.com" NAME="aNexus">Internet Nexus
<BR><A HREF="http://www.suzukimusic.com" NAME="aSuzuki">Suzuki Music

</BODY>

</HTML>