Hi

I'd like to add an Exit button somewhere on a scene. The javascript code needed is said to be just "window.close()". But it won't work in my example. Nothing occurs, and no error is raised.
The code of the included snippet is below :

Code:
ovi.provide("MyNS.snippet.navig");
MyNS.snippet.navig = new ovi.Class({
   Extends: ovi.ui.Snippet,
   template: '<span  data-bind-event="click:click">navig</span> ',
   click: function() {
                window.close();
   }
});
Thanks.