I need to warn users about unsaved changes before they leave a page (a pretty common problem).   window.onbeforeunload=handler   This works but it raises a default dialog with an irritating standard message that wraps my own text. I need to either...
Does window.onbeforeunload() fire in all browsers? I need a onbeforeunload functionality which is supported at least by IE6 and FF3.6.   For IE, onbeforeunload() seems only to be supported by IE9...
I'm developing a php/javascript chat.  When the user logs in, his/her username is inserted in a MySQL table called queue. This insert returns the mysql_insert_id() that will be stored in a session variable called $_SESSION['CHAT_QUEUE_ID...
Does anyone know if the onbeforeunload event is supported on the iPad and/or if there's a different way to use it?  I've tried pretty much everything, and it seems like the onbeforeunload event is never triggered on the iPad (Safari browser...
What are the differences between onbeforeunload and onunload ? Also I have a specific question related to it's use on the iPad...I have a page (myPage.html) where I am trying to show an alert when the page is closed (i.e. X is pressed to close...
I have some (potentially) long-running ajax calls that I would like to abort if the user navigates to another page. The following jQuery code calls abort on all pending XMLHttpRequest objects upon navigating away from the page:  $.ajaxSetup({     bef...
Problem: I have a site with dynamic content which needs to be reloaded every time the user sees it. This includes the use case when a user hits the back button on an another site and comes to the site needed to be reloaded. Most (all?) browsers don&#...
<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 have an onbeforeunload event that's supposed to get triggered any time a user goes to a new page. It works well enough, but I've found that it also gets triggered in Chrome any time a user downloads a file from the page they're on.   I&...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.