开发者

Forcing a reload in JQuery

开发者 https://www.devze.com 2023-01-11 22:25 出处:网络
I am making use of the Lavalamp plugin from http://nixboxdesigns.com/projects/jquery-lavalamp/ and everything seems to be working fine except that there is a little quirk when using the back button.

I am making use of the Lavalamp plugin from http://nixboxdesigns.com/projects/jquery-lavalamp/ and everything seems to be working fine except that there is a little quirk when using the back button.

For example:

  1. If you are starting off from the home page, the hover is underneath the home menu.
  2. Click on a new menu item, the hover appears underneath it
  3. Click on the browser's back button, and the hover does not return to the home menu item, it stays at the previously clicked one.

I need to find a way to call the Lavalamp function when the back button is being triggered.

Hope to get some help 开发者_StackOverflow中文版here


It sounds like the OnBeforeUnload event is what you are looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消