script js
snippet in javascript

script js

user8405

<script type="text/javascript" src="monscript.js"></script>

add script html

user775

<html>
  <head>
    <script type="text/javascript" src="/path/to/script.js"></script>
    ...

html external javascript

user3380

<script src="myScript.js"></script>

js script

user6621

<script src="javascript.js"></script>

script tag in html

user7818

<script>
  // Write JS here
</script>

<script src="link/to/js/file.js"></script>

how to add javascript to html

user6563


<script>

document.getElementById("demo").innerHTML = "My First JavaScript";

</script>