I'm using a MacBook Air and have been looking into ePub creation. I've taken a copy of the epub3 boilerplate from github click here. I have in a javascript file added the following
var txt = document.createTextNode(" This text was added to the DIV.");
document.getElementById('contenty').appendChild(txt);
<script src='../js/main.js'></script>
When I open the compiled epub in iBooks it doesn't show This text was added to the DIV.
in the div #contenty
.
Using Kitabu it actually works but is there a way to get Javascript to work in iBooks?
Thanks