open an html using javascript 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';
}