tags:

views:

1551

answers:

2

Hi ,

I am trying to open new pop up window (browser window ) on click of button . Please suggest how to impement it.

+1  A: 

Using Window.open() inside a Button's ClickHandler should do the trick.

Dave Paroulek
+3  A: 

This should give you the basic idea on how to do this.

    Button openWindow = new Button("Open Window");
    openWindow.addClickHandler(new ClickHandler() {

        public void onClick(final ClickEvent clickEvent) {
            Window.open("http://google.com", "_blank", null);
        }
    });
    RootPanel.get().add(openWindow);
bikesandcode