0
What is external javascript
4 Answers
+ 5
external JavaScript is sometimes used to refer to js that isn't written within the html code(in a separate file) or js included in the code through its src link
+ 1
internal:
<html>
<head>
<script>
// js code here
</script>
</head>
external
<html>
<head>
<script src="/path/to/javascript.js"></script>
</head>
+ 1
o thnx btw which one mostly use
0
Soumya Ranjan Rout Both. :) If you need a quick little script there's no point making it a separate file. If you've got a bunch of javascript... best to make it external and not clog up your html.