tags:

views:

194

answers:

1

This question is similar, but i need a replacement for window.open with anchor so that it opens a url on click of the button

How do i fire the anchor event using a method

GWT Popup window in new browser window

A: 

To open an Anchor in a new window, use the constructor that lets you specify a target, and set that target to "_blank"

Jason Hall
@Jason hall how do i fire the anchor event by a method
Rishi
You'll need to fire a `ClickEvent` on your anchor. See http://stackoverflow.com/questions/1238355/firing-click-event-from-code-in-gwt
Jason Hall