I am looking to invoke a service when a user navigates away from the page. I tried running a console.log for testing purposes on the blur, page hide, and unload events for the page I am on but none of them seemed to work.
I next tried running this code on a page load event:
codeApperyio( ".Screen1_pro" ).on( "pagechange", function( ) {console.log("page change") } )/code
I'm guessing that this isn't the right event, but what event should I run it on if I want something to happen when I leave the page?