Skip to content
Advertisement

JavaScript function not working in Mozilla

Below function is working fine for IE, but not working for Mozilla and other browsers:

JavaScript

What I am trying to do is, I have a button on a page after clicking on that button, a page in opened in new window having session, the session will be maintained until user closes the browser. on the new page there is right navigation which have different links for different pages. If I directly call my sessionkill.aspx it kills the session whenever a link is clicked on window unload function.

Advertisement

Answer

Mozilla does not set the global window.event property.

I’d recommend using an AJAX framework, such as JQuery (or even Microsoft AJAX).

JavaScript

Update: if you were using JQuery:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement