Javascript in several html’s

Asked

Viewed 48 times

0

I am learning and using Javascript and would like to know if it is possible to use scripts from a . js file in several others. html, with functions and everything. If possible, just call the file . js in . html by tag <script>?

1 answer

3


Yes, you can include the same file javascript on multiple pages using the tag script.

Including on pages from other sites. See jQuery for example, which you can include on any page using this hosting:

<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js">

Browser other questions tagged

You are not signed in. Login or sign up in order to post.