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

Onclick going to random page InDesign

Community Beginner ,
Aug 18, 2021 Aug 18, 2021

Hello, 

 

I am doing a book and for the epub version i would like to create a button (at the last page of the book) and when you click on it, you go automatically to a random page of the book. 

I had a look to the actions available natively in InDesign and i havent found my answer.

Maybe i need to use Javascript or something ? 

Can someone please help me ? 

 

Thanks by advance for your help 

🙂

TOPICS
EPUB , How to , Scripting
351
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

Community Expert , Aug 19, 2021 Aug 19, 2021

Hi ronanp56,

a random page as target for a button?

Not possible. Not from InDesign.

 

About the support of JavaScript in EPUB reading apps:

https://ebooks.stackexchange.com/questions/8321/which-major-ebook-reading-applications-support-javascript/8329

 

So, theoretically there is support for a specific kind of EPUB, but practically: No.

 

What you could do so it looks like it's random, but in fact it is not:

Do a bunch of very tiny buttons. Maybe 100 or so in one very small spot. Every button has

...
Translate
Community Expert ,
Aug 19, 2021 Aug 19, 2021
LATEST

Hi ronanp56,

a random page as target for a button?

Not possible. Not from InDesign.

 

About the support of JavaScript in EPUB reading apps:

https://ebooks.stackexchange.com/questions/8321/which-major-ebook-reading-applications-support-javas...

 

So, theoretically there is support for a specific kind of EPUB, but practically: No.

 

What you could do so it looks like it's random, but in fact it is not:

Do a bunch of very tiny buttons. Maybe 100 or so in one very small spot. Every button has a different target. The user should not be able to repeat clicking at the same button again, because it is so tiny.

( Just an idea… )

 

Regards,
Uwe Laubender

( ACP )

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