how to capture event on the Stop button of IE & Mz

Discussion in 'JavaScript' started by joshantanu, Jun 5, 2006.

  1. #1
    Hi,

    Here is the requirment that need to be solved.

    The scenario is, in the simple HTML code there is an loading animation .gif image and a text in a "DIV" tag. i have to hide that "div" after pressing the "Stop" button of the internet browser. Hiding thru simply putting "display:none;" property of CSS.

    i got document.onstop event in IE but it is not working in Mozilla.

    Is there any such event should work in both the browser and fulfill the above mentioned requirment?

    looking forward for urgent reply..
    Thanking You...

    -Joe :)
     
    joshantanu, Jun 5, 2006 IP
  2. anjanesh

    anjanesh Well-Known Member

    Messages:
    344
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    165
    #2
    document.onstop is an IE specific method - dont expect anything like this from other browsers.
     
    anjanesh, Jun 19, 2006 IP
  3. pher

    pher Well-Known Member

    Messages:
    403
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    125
    #3
    Do you have to use the browser's stop button? If not, you can display a stop button/image during the loading phase. If that button is pressed, then it can stop the loading of the page.
     
    pher, Jun 19, 2006 IP