Showing posts with label firefox. Show all posts
Showing posts with label firefox. Show all posts

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>

Enable javascript to change status bar in Firefox

While designing a website and test it in firefox most of the programmers found that if the their site has a script for the status bar it doesnt work.
in internet explorer it just ask the user to activate the ActiveX content.

To enable this feature in firefox just open Tools -> Options Open The tab Content and then press the button Advanced next to the javascript option and select the change status bar text

its so simple.

Q: Why should i display the status bar message?

A: Most of the users ignore this feature But a developer should have it on if he/she wants to test different version of the website and i mean on different browsers

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?