link javascript to html in different folder code example
Example 1: include other js files in a js file
document.writeln("<script type='text/javascript' src='Script1.js'></script>");
document.writeln("<script type='text/javascript' src='Script2.js'></script>");
Example 2: how to create multiple pages in html
<!-- Answer to: "how to create multiple pages in html" -->
<!DOCTYPE html>
<html>
<head>
<link href="./style.css">
<script type="text/javascript" src="./script.js"></script>
<title></title>
</head>
<body>
<a href="./new_page.html">Link to other pages</a>
...
</body>
</html>