How to exit browser


Could web browser be closed after click a button?


Window.executeJavaScript(“window.close()”); would do just that.

Thank you, Jouni.

There is no way to do this any more on newer Firefox v.22 ff. Only if there is a Reference to window object it can be closed. In case of a Application (UI) main window this is not the case.

JavaScript.getCurrent().execute(“window.close()”); ?