GWT Popup window in new browser window

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


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) {
  "", "_blank", null);

Using inside a Button's ClickHandler should do the trick.

We have to use HTML's Target attribute to tell the browser,that where it should open."","_blank","");

_blank Opens the linked document in a new window or tab

_self Opens the linked document in the same frame as it was clicked (this is default)

_parent Opens the linked document in the parent frame

_top Opens the linked document in the full body of the window

Need Your Help

Azure Custom Controller / API .Net backend

c# azure azure-api-apps azure-mobile-services

I have had a MobileService running on Azure, and have decided to create a new service and migrate the code myself. The new service is of the new type called: Azure Mobile App Service.