I want my menu links to change pages and also execute a particular JS function on that page. I've tried
but it's not working. How can I do this?
you can do only one thing inside the items structure, but you can do multiple things outside
1. call JS function and redirect the browser after executing custom code
2. redirect to other page and run custom code there