นำเข้า js ในแบบ html
<script type="text/javascript" src="yourfile.js"></script>
รวมสคริปต์ในแบบ html
<script type="text/javascript" src="/path/to/script.js"></script>
วิธีที่จะเชื่อมโยงของคุณ js แฟ้มเอกสาร html
<script src="index.js"></script>
วิธีที่จะเชื่อมโยงจาวาสคริปต์เอกสาร html
<script src="PathToYourFile.js"> </script>
เชื่อมโยงจาวาสคริปต์เอกสาร html
<script src="index.js"> </script>
นำเข้าสคริปต์แบบ html
<html>
<head>
<script type="text/javascript" src="/path/to/script.js"></script>
...
NU
<html>
<head>
<script type="text/javascript" src="/path/to/script.js"></script>
...