Answers for "open html file 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
10

javascript open new window

<a onclick="window.open(document.URL, '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes');">
Open New Window
</a>
Posted by: Guest on February-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language