Answers for "open html file with javascript"

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
2

open a html file using js

// In case I don't want any buttons or links to open a document
// I just want to open a document
window.open('file.extension');
Posted by: Guest on March-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language