javascript - Page redirection on page refresh not working -


I want to redirect to a page on page refresh. Below is my script

  $ (window). Unload (function () (warning ("exit"); window.location = 'http://www.google.com'; return false;});  

This is not working, I do not know what I am.

Most of the browser has become unloading process .

You should use the beforeunload event instead.

  $ (window) .bind ('beforeunload', function () {warning ("exit"); window.place = 'http://www.google.com'; return False;});  

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -