View Single Post
Old 12-30-2020, 09:01 AM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,682
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by koq View Post
I did Javascript in external file (Misc folder) and put the name of the script file in the src (source) attribute of a <script> tag:

<script src="/Misc/myScript.js"></script>

However, it did not work. Thank you.
Unless you've modified the structure of your epub to have the Misc folder at the root of the archive, I wouldn't expect the src path you specified to work.

I would think you'd need to provide a src path that is relative to the location of the html file the script tag is a part of.
DiapDealer is online now   Reply With Quote