I've searched for hours, but I couldn't find a solution for this.  window.onbeforeunload = warn;   This doesn't work:  function warn (e)  {     var destination = e.href;    alert(destination ); }   Okay, so to clear the things. If the u...
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 am having a problem submitting form on window unload if form information has been updated (album.updated = true):  window.onunload = function(evnt) {   if (album.updated) {     var save = confirm('Do you want to save changes?');     if (sav...
I have the following JavaScript  EDIT: included assignments for changesSaved   var changesSaved = true;      $(document).ready(function () {          $(".applyChanges").click(function (e) {             e.preventDefault();             var id =...
Is it possible to capture what link on the web page the user clicked on? Not talking about if they manually entered an url in the address bar or if they clicked on the back button - but an existing link or menu item on the current page.  This is for...
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'm developing an eCommerce(PHP) web site and here's my requirement.  Once the customer leave the order page or close the browser, I would like to offer another product with pop up or alert box. If they choose 'Yes', it will redirect...
This code will open go.com in popup window:  <a href="javascript:void(0)" onClick="javascript:window.open('http://go.com','','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=300px,height=300px'...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.