how to open a js file from html code example
Example: 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';
}
// In my case, I used a button to activate this function:
function myFunction() {
window.location.href = 'index.html';
}