Answers for "how to have js in html file"

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
1

how to connect a js file in html

<!--if you save the javascript file in a folder-->
<script type="text/javscript" src="foldername/filename.js"></script>
<!-- If you save the file in the parent folder-->
<script type="text/javscript" src="filename.js"></script>
Posted by: Guest on August-13-2021

Code answers related to "how to have js in html file"

Browse Popular Code Answers by Language