it is really pretty easy using JSNI
   public static native closeWindow(JavascriptObject myWindow)/*- 
{ myWindow.close(); }-*/;


HOWEVER, you can only close windows that you open, and to close them,  
you have to have a reference to the window object. Since GWTs  
Window.open() doesn't return the instance to you, you would have to  
create JSNI methods to both open a new window which returns a window  
object, and to close that window.

-jason


On Oct 30, 2008, at 7:20 AM, arnaud wrote:

>
> Hello everyone,
> i just want to know how to close the browser window when we click on
> the button.Does somebody know?I hope your reply
> Arnaud
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to