View Single Post
Old 02-18-2025, 01:46 PM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Ilcaa View Post
i am attaching a very small sample with the script. If someone could correct it and let me know what I was missing that would be great. Thanks for the help
You'll need to add onload to actually load the script:

Code:
<body onload="javascript:init()">
And as KevinH has already pointed out, you'll need to enable the Javascript option in Sigil.

However, using JavaScript in this way wouldn't be useful, if you actually want to permanently change text in the epub.
Doitsu is offline   Reply With Quote