I have several pages marked non-linear in the metadata.opf file:
<itemref idref="id18" linear="no"/>
<itemref idref="id19" linear="no"/>
<itemref idref="id20" linear="no"/>
When this book is opened in Apple Books and I click/tap a link to one of those (say, from the table of contents, but also other places), instead of navigating to that page, Books seems to want to treat it as if it were some sort of footnote, and only displays a floating window or sorts (like hover text on a regular web page).
I would prefer it navigate directly to the page. In a web page (were it necessary), you could do something like onclick="window.location=url"
and it would work as if it were a regular link. Is there some way of accomplishing similar functionality in epub?
What javascript is supported at all is only thinly documented, there are no examples (let alone relevant examples)... I can't find much on this. If the javascript is ignored outside of Books, that'd be fine too, as other epub readers seem to be better behaved.
Links:
When Links are clicked: