Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Jun 28, 2022 Jun 28, 2022

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

584
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jun 28, 2022 Jun 28, 2022

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

Translate
Adobe Employee ,
Jun 28, 2022 Jun 28, 2022

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 28, 2022 Jun 28, 2022

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 28, 2022 Jun 28, 2022
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources