Having trouble triggering the loaded event on a live webpage compared to a local page.
The loaded event fails to fire with this code:
var mywin = nw.Window.open('http://www.google.com', {"frame": false}, function(testWin) {
testWin.on('loaded', function() {
alert("testWin loaded");
testWin.moveTo(0, 0);
});
});
but it always works with this:
nw.Window.open('test.html', {"frame": false}, function(testWin) {
testWin.on('loaded', function() {
alert("testWin loaded");
testWin.moveTo(0, 0);
});
});
The only difference is the source being a local file or URL.
Appreciate any help and apologies for the simplistic question (not a programmer here so I'm sure it's something basic).
Developing with NW JS version 13.2
Best regards, Andrew