Muzes zkusit obe funkce . V chrome funguje bez upozorneni.
<html>
<head>
<script type="text/javascript">
var nwGuiWindow = nw.Window.get();
nwGuiWindow.maximize();
function newWindow() {
window.open(
"http://mimiuchi.com/",
"mimiuchi",
"width=600,height=500"
);
}
function newWindowNW() {
nw.Window.open("http://mimiuchi.com/",
{
height: 600,
width: 500
});
}
</script>
</head>
<body>
Click otevrit nove okno function <b>window.open</b> (size 600 x 500)
<br />
<button id='new_window' onclick='newWindow();'>Open new window</button>
<br />
Click otevrit nove okno function <b>nw.Window.open</b> (size 600 x 500)
<br />
<button id='new_window' onclick='newWindowNW();'>Open new window</button>
</body>
</html>