how to open a html file in js 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';
}