File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes window.onbeforeunload is not working in chrome Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "window.onbeforeunload is not working in chrome" Watch "window.onbeforeunload is not working in chrome" New topic
Author

window.onbeforeunload is not working in chrome

pitchaiah basam
Greenhorn

Joined: Jul 22, 2011
Posts: 1
window.onbeforeunload=function(); is not working in chrome.. It works for IE and Mozila but it not works for chrome.. Is there any another way to use window.onbeforeunload=function(); in chrome.
Please find the below code. Failure.jsp is not calling in Chrome
Thanks in advance.......

window.onbeforeunload = function() {
window.location='Failure.jsp';
confirm("onbeforeunload>>>>>>>>>"+window.location);

}

Failure.jsp'
<body>
<h3> <b> Your session Expired</b></h3>
<% session.invalidate();
System.out.println("invalidate>>>>>>>>>>>>>>>>>");
%>
Click here to <a href="http://localhost:8080/myApplication">Relogin</a>
</body>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: window.onbeforeunload is not working in chrome
 
Similar Threads
issue in javascript
Does Onload supported in Mozilla Firefox 3.6
anchor links not workikng in Firefox after resize
Html glass pane
How to return to self page after clicking Confirm box OK button