How to run js query in one page/app on clicking button in another app/page?

i've a js query in one page/app and i want it to trigger on clicking a button which is on another app/page. How can it be done?

It can only be done if you open the app where the query lives, so you could open the other app using a parameter in the URL that the other app can look for and run the js query based on the parameter value or on page load not using a parameter.

1 Like