Join the Webstudio community

Updated 7 months ago

Page change event

At a glance

The community member is asking if there is an event to detect navigation change in order to run a custom script. Another community member responds that they have a script running on document ready, which works on refresh, but not when changing pages via a link in the menu. The issue is solved by refactoring the script to a callable function and including it in the embed script.

Is there any event to detect navigation change to run custom script?
T
2 comments
I have a script running on document ready - it works on refresh, but if I change page by link in menu, it doesn`t run
Solved. Refactored to callable function and included in embed script
Add a reply
Sign up and join the conversation on Discord