Answers for "how to use a javascript file in html"

2

include js in html

<html>
    <head>        
    </head>
    <body>
    
        <script type="text/javascript" src=es4.js></script>
           
    </body>
        
</html>
Posted by: Guest on January-26-2021
6

how to put javascript in HTML

<script>
  //put your java script here
  </script>
Posted by: Guest on March-21-2021
6

how to connect a javascript file to html

<script src="name.js">
	//put in your javascript here
</script>
Posted by: Guest on September-04-2020

Code answers related to "how to use a javascript file in html"

Browse Popular Code Answers by Language