简体   繁体   English

在JQuery中强制重新加载

[英]Forcing a reload in JQuery

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. 我正在使用来自http://nixboxdesigns.com/projects/jquery-lavalamp/的Lavalamp插件,除了使用“后退”按钮时有一点古怪之处,其他一切似乎都工作正常。

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. 当触发后退按钮时,我需要找到一种方法来调用Lavalamp函数。

Hope to get some help here 希望在这里得到一些帮助

听起来好像您正在寻找OnBeforeUnload事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM