title: How to check if a window.open instance goes to a different url
body: <p>I want to schedule code to run when the user navigates to a different url in my window.open instance. This is for an api. How can I check when the users navigates to another url in order to run my code?</p>