| Share this post! | Vote this! |
|
When a page is exiting or unloading, the ‘unload‘ event will be activate, however, this event can not stop a page from exit. You can bind the ‘beforeunload‘ event to $(windows) object to stop a page from exit , unload or navigating away.
<html> <head> <title>Refresh a page in jQuery</title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/ 1.7.1/jquery.js"></script> ...
More...




0 comments:
Post a Comment