Hai friends, I have to increse the page loading time out for internet explorer coz i am having a huge process which may take more than one hour to finish. Now it says page cannot be found after some time but the process is running in back ground. Please help me to solve this problem
Thanku for ur reply. I am working in Java Server Faces in that every event like clicking a button post some value to the same page. I have to do some operation when closing that window. If there is any way to disable the window close button it is also helpfull for me.
Hai the above solution is not working while i am post to the same page it is important because i am working with jsf.I try the following accordind to dan replyParent
<html> <head> <script> var child; function childOpen(){ child = window.open("ClosingChild.html"); } function chkChild(){ alert(child.closed); } </script> </head> <body> <input type="button" onClick="childOpen();" value="Click"> </body></html>
Child
<html> <head> <script> var flag=0; function onClosing(){ if(flag == 1) { alert("Refreshed"); flag = 0; } else { alert("Closed"); var parent = window.opener; alert(parent); parent.chkChild(); } } function onPreClosing(){ flag = 1; } </script> </head> <body onDeactivate="onPreClosing()" onUnload="onClosing();"> <a onClick="window.navigate('ClosingChild.html?name=karthi');" style="cursor:hand">Same Page</a> </body></html>
Hai Dan i did that with out any parent window
<html> <head> <script> var flag=0; function onClosing(){ if(flag == 1) { alert("Refreshed"); flag = 0; } else { alert("Closed"); } } function onPreClosing(){ flag = 1; } </script> </head> <body onDeactivate="onPreClosing()" onUnload="onClosing();"> </body></html>
Hai friends, I want to capture the window closing event. I tried the onUnload event but it also fired on document refresh. I wants to capture only window closing. can any one lead me to do this