Skip to main content
Known Participant
June 28, 2022
Answered

How can i call a function on change of page. I want to save the last page user visited ?

  • June 28, 2022
  • 1 reply
  • 760 views

i want to save the page user last visited so he could resume it from the same page when he came again, for that i want to call a function on every change of page. i there any api for that

    This topic has been closed for replies.
    Correct answer Raymond Camden

    Here's a CodePen showing it in action: https://codepen.io/cfjedimaster/pen/NWvoWNY

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    June 28, 2022

    Yes - we have event handling support that lets you listen for the page change event. 

    Raymond Camden
    Community Manager
    Raymond CamdenCommunity ManagerCorrect answer
    Community Manager
    June 28, 2022

    Here's a CodePen showing it in action: https://codepen.io/cfjedimaster/pen/NWvoWNY

    Raymond Camden
    Community Manager
    Community Manager
    June 28, 2022

    And a blog post: https://medium.com/adobetech/improving-the-reader-experience-with-adobe-embed-api-5079498411d9

     

    Sorry - normally I'd have done this in one post.