Created
March 4, 2013 04:02
-
-
Save xtman/5079825 to your computer and use it in GitHub Desktop.
GWT: open relative url in a new window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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