Window Close Event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Coder Coder

    Window Close Event

    <script for="window" event="onbefore unload">
    alert('Im closing');
    </script>



  • Randy Webb

    #2
    Re: Window Close Event

    Coder Coder wrote:
    [color=blue]
    > <script for="window" event="onbefore unload">
    > alert('Im closing');
    > </script>[/color]

    Is that code supposed to do anything in my browser other than give an
    alert when the page loads? Which is what it does.




    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • Lasse Reichstein Nielsen

      #3
      Re: Window Close Event

      Randy Webb <hikksnotathome @aol.com> writes:
      [color=blue]
      > Is that code supposed to do anything in my browser other than give an
      > alert when the page loads? Which is what it does.[/color]

      No. It's not supposed to be used in any browser except IE.
      Which makes it unusable for an internet page.

      /L
      --
      Lasse Reichstein Nielsen - lrn@hotpop.com
      DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
      'Faith without judgement merely degrades the spirit divine.'

      Comment

      • Randy Webb

        #4
        Re: Window Close Event

        Lasse Reichstein Nielsen wrote:[color=blue]
        > Randy Webb <hikksnotathome @aol.com> writes:
        >
        >[color=green]
        >>Is that code supposed to do anything in my browser other than give an
        >>alert when the page loads? Which is what it does.[/color]
        >
        >
        > No. It's not supposed to be used in any browser except IE.
        > Which makes it unusable for an internet page.[/color]

        Heck, it doesn't even work in my IE :)

        But that was my point, was to get the OP to realize that.

        --
        Randy
        Chance Favors The Prepared Mind
        comp.lang.javas cript FAQ - http://jibbering.com/faq/

        Comment

        Working...