SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2007
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    window.defaultStatus property doesn't work in Firefox

    I have written this small program that works only in ie.Any idea why is this happening?Thank you.

    <html>
    <head>
    <script type=”text/javaScript”>
    window.defaultStatus = “Hello and Welcome”;
    </script>
    </head>
    </html>

  2. #2
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You aren't allowed to change the status bar text by default. However, if you want to change the default options for firefox go to to tools/options/content/advanced and select "change status bar text." All modern browers have this option turned off with the exception of ie6 if you want to call that modern .

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,871
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    That is one of the security holes in IE6 that was plugged in IE7.

    Now all browsers disable access to update the status bar because it makes it to easy to fool people into thinking that a link points to one site when it really points to somewhere quite different.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Enthusiast
    Join Date
    May 2007
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found the solution of this mystery here : http://www.sitepoint.com/forums/show....php?p=3366318

    It is all a matter of an unchecked option!

  5. #5
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,871
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    The default value for that setting is the one that makes the browser more secure. Unchecking it makes it easier for would be thieves to trick you into going to their web site and give them the passwords so they can sign in as you on other sites (such as your bank).

    With it unchecked they can override the text that normally displays in the status bar when you hover over a link that tells you where the link goes. By displaying the address of a site you exoect to visit and making their page look like that site you have one less place to look at to spot that you are not going where you think you are going.

    Few people would change that setting in their browser given the secuirty hole that doing so will open.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •