require('Common');
var win = new Window();
application.exitAfterWindowsClose = true;
win.visible = true;
win.title = "Hi Tint World!";


var webview = new WebView(); // Create a new webview for HTML.
win.appendChild(webview); // attach the webview to the window.

// position the webview 0 pixels from all the window's edges.
webview.left=webview.right=webview.top=webview.bottom=0;

// What we should do when the web-page loads.
webview.addEventListener('load', function() {
    webview.postMessage(JSON.stringify(process.versions));
});

webview.location = "app://src/index.html"; // Tell the webview to render the index.html
@@ -36,16 +36,47 @@
 ndow();%0A
+var toolbar = new Toolbar();%0A%0A%0A
 applicat
@@ -160,16 +160,108 @@
 rld!%22;%0A%0A
+btn = new Button();%0Abtn.image = 'back';%0Atoolbar.appendChild( btn );%0Awin.toolbar = toolbar;%0A%0A
 %0Avar web

Add toolbar with back button