Login
Remember
Register
Ask a Question
How to use external JavaScript file?
0
votes
asked
Jun 8, 2022
in
JavaScript
by
sharadyadav1986
How to use external JavaScript file?
external-javascript
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 8, 2022
by
sharadyadav1986
I am assuming that js file name is message.js, place the following script tag inside the head tag.
// <
script
type
=
"text/javascript"
src
=
"message.js"
>
</
script
>
...