12/2/2018 8:28:25 PM
<script> in html has a src attribute; there you put the path of your js file.
just save file with extention .js
I f you mean to use one js code in another js file. This is used often in js frameworks like angular.
i undersrand the version with <script> and the version with js but my problem is to ceate the external file
You can use a simple text editor for it.
and put it like a link like it:
<script src="externe file.js"> ?
with the same form that a simple link for a web page ...?
Send us a message