Monday, 31 August 2009

Javascript code for the status bar

In the status bar of the browser you can set a text the time or what ever its up to you.
If you complete this `tutorial` and you still dont see the status bar message 
go to enable-javascript-to-change-status-bar
how to use this feature
Create a new html file create a new script area (javascript) and create a function
i will name my function startScript()
the code for changing the status message is window.status = text

<html>
  <head>
    <title>
      http://cycomptech.blogspot.com/
    </title>
    <script type="text/javascript">
      function startScript()
      {
        var stavros = "This is a test!";
        window.status = stavros;
      }
    </script>
  </head>
  <body onload="startScript();">
    <center>
      This page demonstrate the status bar of the browser<br>
      using javascript<br>
      <a href="http://cycomptech.blogspot.com/">http://cycomptech.blogspot.com/</a>
    </center>
  </body>
</html>

No comments:

Post a Comment

Reset numbering for Screenshots Win+PrtSc

I was using today the screen shot functionality of Windows 8.1 Win Key + PrtSc How to reset the numbering?