Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

38

Likes

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

Adobe Community Professional , 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...

Likes

Translate

Translate
Adobe Community Professional ,
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 )

Likes

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