Are you sure this is related to system but not IE version ? I would
think of the opposite. Default browser for NT is IE4 while that for 2k
is
IE5. Have you tried to use the same version in both platforms ?
I think your problem is due to the fact that onunload behaves
differently in later versions because more and more sites are using
very
aggressive popup ads windows, which once closed by users opens another
popup.
But I don't know in what situation onunload handler wouldn't load
new page.
> -----Message d'origine-----
> De=C2=A0: Udhayakumar. U [mailto:udhayakumar@m...]
> Envoy=C3=A9=C2=A0: lundi 17 f=C3=A9vrier 2003 09:49
> =C3=80=C2=A0: javascript
> Objet=C2=A0: [javascript] body Unload in Windows2000
>
>
> Hello,
>
> I am trying to post a request on body UnLoad of the html file
> to a Servlet
> running in Tomcat 3.2.3. If OS is Win NT, the request is
> posted everytime to
> the Server but if the OS is Windows 2000 Server or
> Professional, the request
> is posted the first one or two times and later it is not
> posted at all.
>
> The html code is as follows:
>
> html
> head
> body onunload=3D"check()"
> form name=3D"form1" ACTION=3D"../servlet/Hello" METHOD=3DPOST
> INPUT TYPE=3D"hidden" Name=3D"name" value=3D"helloVal">
> /form
> Testing body OnUnLoad.....
> /body
>
> Script Language=3D"JavaScript"
>
> function check()
> {
> alert("in unload function");
> window.document.form1.submit();
> }
>
> /script
> /html
>
>
> check() is the method called on body unload which alerts the
> message "in
> unload function" and submits the form1.
>
> Does any body have an idea as to why it is not posted in 2000 alone?
>
> regards,
> uuk
>
>
>