[英]pagehide event in mobile safari
I need to know Is there any event that is triggered when the url is changed and the user navigates to a different url in mobile safari? 我需要知道在更改网址并且用户在移动浏览器中导航到其他网址时会触发任何事件吗? I have pagehide event triggered only when the user closes the browser tab.
我只有在用户关闭浏览器选项卡时才触发pagehide事件。 Is there any other work around?
周围还有其他工作吗? i cant see hashchange event firing in safari as well.
我看不到Safari也触发了hashchange事件。
You could look at the new features of History in HTML5 . 您可以查看HTML5中“ 历史记录”的新功能。 There is an event called popstate which will let you do the things I think you are trying to achieve.
有一个名为popstate的事件,它将使您完成我认为您要实现的事情。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.