Thread: Libra 2 kepub - running Javascript
View Single Post
Old 08-11-2025, 01:28 PM   #3
LPolder
Junior Member
LPolder began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2025
Device: Kobo Libra 2
I am not calling the function using an interactive element, but am calling it later in the script. I did the same with the following function, and that one works:
Quote:
function rollDice(){return Math.floor(6*Math.random())+1};
I agree that the JS support is limited, but I'm just trying to figure out how limited exactly, and how to escape the "<" sign
LPolder is offline   Reply With Quote