• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

window.onbeforeunload is not working in chrome

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic