On 3 May 2004 10:02:31 -0700, Yashwant <iamr00t1974@hotmail.com> wrote:
[FUs set to clj]
[color=blue]
> I am trying to submit a form onUnLoad when the user accidentally
> closes the browser before clicking on a link to complete the
> transaction.[/color]
Then show a warning clearly on the page that closing the browser before
finishing the transaction will cause them to lose all their information.
[color=blue]
> On IE, this works fine.
> But on Netscape or Mozzilla browsers, the form would simply not submit
> when the browser is closed.[/color]
Why should it? The browser is closing. It doesn't make sense for an
application to do anything more than internal clean-up operations when the
user closes it. Initiating another round of HTTP requests should be out of
the question. Moreover, you do realise that browsers like Opera don't even
fire the unload event when they close.
[color=blue]
> here is the code.
> <script language="JavaScript">[/color]
Though this is the least of your worries, that should read
<script type="text/javascript">
The type attribute is required, whereas the language attribute is
deprecated and should no long be used.
[snip]
Good luck,
Mike
--
Michael Winter
M.Winter@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)