Inserting Source JavaScript Files : JavaScript in HTML « Development « JavaScript DHTML
- JavaScript DHTML
- Development
- JavaScript in HTML
Inserting Source JavaScript Files
<html>
<head>
<title>Using the SRC attribute of the script tag.</title>
</head>
<body>
<script language="JavaScript" SRC="src.js">
</script>
</body>
</html>
//File:src.js
alert("Hi");
Related examples in the same category