Anil Yadav

Thursday, 11 June 2015

onbeforeunload unbind/bind on page before leave page

For unbind
  window.onbeforeunload = null;

For Bind
    
  function closeIt()
  {
    return "Are you sure you want to cancel this posting?";
  }
  window.onbeforeunload = closeIt;
Posted by Anilmcmt at 23:31
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2020 (1)
    • ►  February (1)
  • ►  2018 (8)
    • ►  July (1)
    • ►  March (1)
    • ►  January (6)
  • ►  2017 (13)
    • ►  September (3)
    • ►  August (3)
    • ►  July (4)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
  • ►  2016 (13)
    • ►  December (1)
    • ►  September (2)
    • ►  August (1)
    • ►  March (1)
    • ►  February (5)
    • ►  January (3)
  • ▼  2015 (6)
    • ►  December (1)
    • ►  August (1)
    • ▼  June (4)
      • find charecter in array
      • numeric value insert only
      • onbeforeunload unbind/bind on page before leave page
      • set maxdate depend on mindate in datepicker
  • ►  2014 (14)
    • ►  December (1)
    • ►  November (2)
    • ►  October (3)
    • ►  September (1)
    • ►  July (3)
    • ►  June (1)
    • ►  March (2)
    • ►  February (1)
  • ►  2013 (21)
    • ►  December (2)
    • ►  September (4)
    • ►  August (3)
    • ►  July (1)
    • ►  May (2)
    • ►  April (3)
    • ►  March (6)

About Me

Anilmcmt
View my complete profile
Simple theme. Powered by Blogger.