I'm trying to open a new window from electron via a JavaScript file, it works, and opens the new window but I can't write HTML/text to new file. I'm getting that error :
Cannot read property 'write' of undefined
My simple code:
var myWindow = window.open("", "myWindow", "width=300, height=200");
myWindow.document.write ('content');
Any advice or other way?