Here is how you do it on Chrome and IE: http://productforums.google.com/forum/#!topic/chrome/GjsCrvPYGlA http://productforums.google.com/forum/#!topic/chrome/k7aKtZlalqU
<script type = "text/javascript"> function closeWindow(){ window.open('','_self',''); window.close(); } </script> There is more discussion here: http://stackoverflow.com/questions/8301780/javascript-code-to-close-tab-that-works-in-ie-firefox-and-chrome It explains that JavaScript can only close windows that were opened by JavaScript. On Tuesday, March 12, 2013 5:44:03 PM UTC-4, nalin...@googlemail.com wrote: > > Hi, > > I use JSNI code > > public static native void closeBrowser() > /*-{ > $wnd.close(); > }-*/; > > to close my GWT app. It doesnt work with browsers other than IE.... > > Any suggestions? > > Regards, > Nalini.K > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.