onbeforeunload issue

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

    onbeforeunload issue

    The onbeforeunload fires just before the current document begins to
    unload due to form submission or window closure.

    How can I have this code run after window closure (X) but not after
    pressing a button (form submission)?

  • Ivo

    #2
    Re: onbeforeunload issue

    "Marcia Gulesian" wrote[color=blue]
    > The onbeforeunload fires just before the current document begins to
    > unload due to form submission or window closure.
    >
    > How can I have this code run after window closure (X) but not after
    > pressing a button (form submission)?[/color]

    <input type="submit" onclick="onbefo reunload=null">

    HTH
    Ivo


    Comment

    • Marcia Gulesian

      #3
      Re: onbeforeunload issue

      Thanks!

      Ivo wrote:
      [color=blue]
      > "Marcia Gulesian" wrote[color=green]
      > > The onbeforeunload fires just before the current document begins to
      > > unload due to form submission or window closure.
      > >
      > > How can I have this code run after window closure (X) but not after
      > > pressing a button (form submission)?[/color]
      >
      > <input type="submit" onclick="onbefo reunload=null">
      >
      > HTH
      > Ivo[/color]

      Comment

      Working...