electron cant import js in html code example Example: call node.js file electron myButton.onclick = function() { require('./getuser'); };