Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

Navigate from page

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Navigate from page

Hello Ellen,

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

Return to “Issues”