You want an Anchor widget that opens a new window with no menubar and toolbar, correct?
Try this:
final Anchor a = new Anchor("text", false);
a.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
newWindow();
}
native void newWindow() /*-{
window.open("http://www.google.com", "_blank","status=0,toolbar=0");
}-*/;
});
RootPanel.get().add(a);
UPDATE:
create the same behaviour of this link via GWT/Javascript
At first I thought by "GWT/Javascript" you meant JSNI. If you mean GWT or Javascript like in the question title, then you can use Window.open()
instead of the JSNI method. Window.open() takes the same three String arguments as the JS version.