Answers for "javascript load html from file"

2

how to open html file with javascript

// In my case, I used a button to activate this function:
function myFunction() {
    window.location.href = 'index.html';
}
Posted by: Guest on November-18-2020
23

link javascript file to html

<script type="text/javascript" src="path-to-javascript-file.js"></script>
Posted by: Guest on March-08-2020

Browse Popular Code Answers by Language