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

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -