In node-webkit I want to open, by choice, from a folder .html pages containing certain data (it does not come out in advance, because files are constantly being added, replaced, etc.) The form works to open a directory and select a file from the list, but that’s all. The fileX.html is displayed on a blank page. Is there a way to open a page from a file?

    1 answer 1

    Solved the issue using fs.reddir and fs.reddir list of files as links

     files.forEach(file => { document.write("<a href=" + "'" + "udostoverenia/" + file + "'>" + file + "</a>" + "</br>"); });