close application programmatically

Develop and Deploy Native Apps for Windows, OS X, Linux, Unix ...
Post Reply
sedrok
Posts: 26
Joined: Tue Jun 03, 2014 12:50 pm

close application programmatically

Post by sedrok »

close application programmatically :

1-st way javascript code
process.exit(code=0);
2-nd way javascript code
var win=require('nw.gui').Window.get();
            win.maximize();
            win.show();

            win.close();

Post Reply