javascript - How to open URL in the same window in Node-Webkit? -
var win = gui.window.open('https://github.com', { position: 'center', width: 901, height: 127 });
this open url in new window, how open (redirect) url in same main window?
you can use normal html window functions.
window.location.href = 'http://example.com';
just sure include
node-remote: 'http://example.com'
in package.json if plan use default nodewebkit functionality when page loaded.
Comments
Post a Comment