electron js change index.html code example Example: electron load index.html mainWindow.loadFile(path.join(__dirname, 'index.html'));