06-16-2020, 07:40 AM | #1 |
Connoisseur
Posts: 92
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Is it possible to have a back button
When reading the ebook and linking to an appendix, is it possible to have a back link to return to the pervious page?
something like history.back() |
06-16-2020, 08:01 AM | #2 |
Resident Curmudgeon
Posts: 76,049
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The back link has to be part of the eBook's code.
|
Advert | |
|
06-16-2020, 08:03 AM | #3 |
Connoisseur
Posts: 92
Karma: 10
Join Date: Jan 2020
Device: kindle
|
|
06-16-2020, 08:14 AM | #4 |
Resident Curmudgeon
Posts: 76,049
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Here is code that will work.
Code:
<p class="paraNoIndent">There are many kinds of vampires. Indeed, it is said that there are as many kinds of vampires as there are types of disease.<span class="footnoteRef"><a href="9780061807862_Footnote.xhtml#footnote1" id="footnote_1">[*]</a></span> And they’re not just human (if vampires are human). All along the Ramtops may be found the belief that any apparently innocent tool, be it hammer or saw, will seek blood if left unused for more than three years. In Ghat they believe in vampire watermelons, although folklore is silent about <i>what</i> they believe about vampire watermelons. Possibly they suck back.</p> Code:
<p class="footnote" id="footnote1"><span class="footnotePara"><a href="9780061807862_Chapter_1.xhtml#footnote_1">[*]</a> Which presumably mean that some are virulent and deadly, and others just make you walk in a funny way and avoid fruit.</span></p> Code:
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; } img { max-width: 100%; max-height: 100%; } p { margin-top: 0; margin-bottom: 0; text-indent: 1.2em; } .aboutAuthorPage { page-break-before: always; } .aboutAuthorText { text-align: justify; text-indent: 0; margin-top: 0; margin-bottom: 0.8em; } .chapterNumber { margin-top: 0.8em; margin-bottom: 0.8em; text-align: center; text-indent: 0; font-size: large; font-weight: bold; } .chapterOpenerText { margin-bottom: 0; margin-top: 0; margin-left: 0; text-indent: 0; } .contentsHead { margin-top: 0.8em; margin-bottom: 0.8em; text-align: center; text-indent: 0; font-size: large; font-weight: bold; } .copyrightPage { page-break-before: always; } .copyrightText { font-size: small; margin-top: 0.8em; font-weight: normal; margin-bottom: 0; text-indent: 0; text-align: justify; } .footnote { margin-bottom: 1.5em; font-style: normal; font-weight: bold; text-indent: 1.5em; text-align: justify; } .footnotePara { margin-bottom: 2em; font-style: normal; font-weight: normal; text-indent: 0; text-align: justify; } .footnoteRef { display: inline; font-style: normal; font-weight: bold; vertical-align: top; } .paraCenter { margin-bottom: 2%; text-indent: 0; text-align: center; } .paraNoIndent { padding-top: 2em; text-indent: 0; text-align: justify; } .paraNoIndent1 { padding-top: 1em; text-indent: 0; text-align: justify; } It's the use of the ID that says where the links land in the XHTML file. |
06-16-2020, 08:27 AM | #5 |
Connoisseur
Posts: 92
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Not quite what I was meaning, in html history.back() returns back to the previous page in history, so if I use an xhtml link it would return to that page, not the previous page.
Seems the Walk Search History plugin is what i had in mind, but it is not available for Sigil Last edited by increase; 06-16-2020 at 08:31 AM. |
Advert | |
|
06-16-2020, 08:36 AM | #6 | |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
06-16-2020, 12:24 PM | #7 | |
Running with scissors
Posts: 1,557
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Quote:
Code:
<a href="#note1" id="backref1">[Note 1]</a> Code:
<a id="note1"></a>Hannibal, Missouri. (<a href="#backref1">Return to previous place.</a> Last edited by hobnail; 06-17-2020 at 11:45 AM. |
|
06-16-2020, 12:45 PM | #8 | |
Resident Curmudgeon
Posts: 76,049
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
06-16-2020, 01:09 PM | #9 |
Grand Sorcerer
Posts: 6,694
Karma: 86234809
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
06-16-2020, 04:50 PM | #10 |
Resident Curmudgeon
Posts: 76,049
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Back button | gabaldini | Calibre | 2 | 12-30-2016 10:15 AM |
Glo Back Button on Glo ? | bongorash | Kobo Reader | 10 | 06-24-2013 09:04 PM |
Back Button? | dandichka | Calibre | 5 | 07-05-2012 12:19 PM |
PRS-T1 How can I use back button as power button? | younghere | Sony Reader | 1 | 03-12-2012 06:37 PM |
The Back button | coltrane | Amazon Kindle | 7 | 05-17-2010 10:10 AM |