Electron menu

Calling new html into the main window from the menu without a front end framework. I thought I’d put this here after not finding any documentation, tutorial or answers from searching:

menu:

submenu: [
        { 
            label: 'Earliest entry',
            click: function(){
                var focusedWindow = BrowserWindow.getFocusedWindow()
                focusedWindow.loadFile('./src/earliest.html')
            }
        },