Skip to content

Instantly share code, notes, and snippets.

@xtman
Created March 4, 2013 04:02
Show Gist options
  • Save xtman/5079825 to your computer and use it in GitHub Desktop.
Save xtman/5079825 to your computer and use it in GitHub Desktop.
GWT: open relative url in a new window
public class GWTExample {
public static void openRelativeURL(String path, String name) {
String url = GWT.getHostPageBaseURL() + path;
com.google.gwt.user.client.Window.open(url, name, null);
}
public static void main(String[] args){
openRelativeURL("about.html");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment