Page 1 of 1

Navigate from page

Posted: Tue Apr 10, 2018 2:40 am
by Ellen Schlechter

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?


Navigate from page

Posted: Wed Apr 11, 2018 9:23 am
by Serhii Kulibaba

Hello Ellen,

Please use page vents "Before unload" or "Blur" for that.