Hi ,
I am trying to open new pop up window (browser window ) on click of button . Please suggest how to impement it.
Hi ,
I am trying to open new pop up window (browser window ) on click of button . Please suggest how to impement it.
Using Window.open() inside a Button's ClickHandler should do the trick.
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);