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

Onclick going to random page InDesign

Community Beginner ,
Aug 18, 2021 Aug 18, 2021

Copy link to clipboard

Copied

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

Views

225

Translate

Translate

Report

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

...

Votes

Translate

Translate
Community Expert ,
Aug 19, 2021 Aug 19, 2021

Copy link to clipboard

Copied

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 )

Votes

Translate

Translate

Report

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