[Solved] How can you access external JavaScript arrays in an html file?


The script needs to reference a JavaScript file, not an HTML file containing a function. Move the function into its own file and include it in the pages as needed.

<script src="https://stackoverflow.com/questions/46531704/EllaFactsArray.js" type="text/javascript"></script>

https://www.w3schools.com/js/DEFAULT.asp

0

solved How can you access external JavaScript arrays in an html file?