Mega Code Archive

 
Categories / JavaScript DHTML / Window Browser
 

Working with Status Bar Messages

<html> <head> <title>Status Bar</title> <SCRIPT LANGUAGE="JavaScript"> <!--      window.defaultStatus = "Welcome to the large URL page."          function changeStatus() {           window.status = "Click me to go to rntsoft.com."      }          function changeDefaultStatus() {           window.defaultStatus = window.document.statusForm.messageList.            options[window.document.statusForm.messageList.            selectedIndex].text      } //--> </SCRIPT> </head>     <body> <p>&#160;</p> <p>&#160;</p><p align=center> <font color="#008040"> <font size=7> <strong>http://www.rntsoft.com</strong></font></font></p> <p align=center> <a href="http://www.rntsoft.com" onMouseOver="changeStatus();return true">Go...</a></p> <form name="statusForm" method="POST"> <p><br> <br> <br> <br> </p> <p align=center> <font size=1>To change the default status bar message, select a message from the list below and click the Change button. </font></p> <p align=center><select      name="messageList"      size=1>      <option selected>Welcome to the large URL page.</option>      <option>A</option>      <option>B</option>      <option>C</option>      </select> <input      type=button      name="Change"      value="Change"      onClick="changeDefaultStatus()"></p> </form> </body> </html>