Perhaps you're looking for the File System API?
File System API - Web APIs | MDN[
^]
However, if you're loading a "loose" HTML page from disk, rather than via a web server, this probably won't work. APIs like this tend to be restricted to "secure" contexts, which means sites served over HTTPS, or sites served from "localhost". Random HTML files on disk don't qualify as "secure" for this purpose.