change or hide the status bar ?!

Discussion in 'HTML & Website Design' started by surfer33, Jul 23, 2007.

  1. #1
    for example the youtube.com is for me and when i open it on my firefox the status bar say that Transferring data from youtube.com.....
    (befor page loading)


    how i can hide or change this parameter when i open a web page?
    how?
    plz give me a script or HTML code ....
    i'm waiting.....
     
    surfer33, Jul 23, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    You shouldn't and browsers such as Firefox disable web sites from tinkering with the status bar text, for good reason. If you must, use JavaScript and change the value of window.status
    <script type="text/javascript">
    function changeStatusBarText(str) {
        window.status = str;
    }
    </script>
    Code (markup):
     
    krt, Jul 23, 2007 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    Agreed on the shouldn't as it falls into the category of modifying the default browser behavior - considered 'impolite' much like using the target attribute in a non-frame layout - and even 'outright suspect' being that it has been abused by phishers almost since javascript was introduced.

    Most Gecko based browsers let the user turn that behavior off, as does Opera for those very reasons - along with address bar, moving/resizing/lowering/raising windows, hiding the address bar, 'right click' interception and other javascript functions that probably never should have been in the specification in the first place.
     
    deathshadow, Jul 23, 2007 IP
  4. surfer33

    surfer33 Banned

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    str showen on stause bar?

    i can chang it?
     
    surfer33, Jul 23, 2007 IP
  5. surfer33

    surfer33 Banned

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    how your script work?
    plz expain more...

    in head or body?
    ...
     
    surfer33, Jul 23, 2007 IP
  6. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #6
    I would put it in <head>. Note it is a function, so you call it after an event takes place.

    e.g.
    <body onload="changeStatusBarText('I am a very annoying status bar replacement');">
    Code (markup):
    But please take what deathshadow and I said :)
     
    krt, Jul 23, 2007 IP
  7. surfer33

    surfer33 Banned

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    plz give me a test or sample

    i dont understand
     
    surfer33, Jul 23, 2007 IP