简体   繁体   中英

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. Is there any other work around? i cant see hashchange event firing in safari as well.

You could look at the new features of History in HTML5 . There is an event called popstate which will let you do the things I think you are trying to achieve.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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