I have written this code      function winUnload() {     alert("Unload Window");     MyMethod(); }  window.onunload = function() { winUnload(); }   This code is working fine in IE and Firefox. But this code is not working in Chrome. Both th...
I'm embedding page that has an exit pop-up. When you close the page, it automatically launches a pop-up window.  How to disable pop-ups coming from the iframe on exit?...
<script type="text/javascript">  window.onbeforeunload=before; window.onunload=after;  function before(evt) {    var message="If you continue, your session will be logged out!";    if(typeof evt=="undefined"){       evt=...
I'm struggling with onbeforeunload, onunload and generating the right messages at the right time. Any idea welcome. This is the situation:   when I use onbeforeunload, the user gets a message to choose whether to navigate away, but I can't tu...
I want to fire onunload event to do some clean up operations, I have multiple tabs(Navbar) showing multiple links to different web pages,my problem is that even when I'm in some other  page my unload function which is in  tag of some other jsp is...
I want to notify the server on user closes browser window.  I tried all of the  $(window).bind("beforeunload", function() {     $.get("${contextPath}/notify?direction=logout"); });   and  $(window).unload( function() {     $.get("...
I am working on a Web Hosting panel which has a DNS records manager.  I have to use a lot of JavaScript to make it perform almost like a desktop application.  I really wanted to show a Custom Dialog window when a a browser runs beforeunload however a...
I need to catch closing tab/browser on mobile. onunload & onbeforeunload javascript event can catch refresh page, submit form, redirect page, close tab/browser... It worked perfectly on PC, but when I tried these events on mobile browsers (Chrome...
In all of the sample code I have seen, it appears that the only function of onbeforeunload is to serve up an alert dialog box prior to the person leaving the page. Is that the only thing that can be triggered by the event or is it possible to do some...
I have a web server that generates questions for students of a particular subject. The web server needs to keep track of how much time each student has spent on a particular set of questions.  The web pages have a "Finished" button, which, wh...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.