Simply cut and paste the contents between the <script>
tags into myfunctions.js
.
How to add multiple javascript functions to an external file step by step
-
19-10-2022 - |
Question
So i have some javascript functions all around my website and i would like to organize them in one file.js
So i can call the file in the header like this:
<script src="myfunctions.js"></script>
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow