Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How to use external JavaScript file?
Home
JavaScript
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
>
...