Search code examples
gwthyperlinkanchoruibinder

GWT Anchor action by hand


I have an Anchor widget in my gwt-application. If you click on it a link will bring you to a website.

I want to call the link by hand in a program-method. Like: anchor.click() ;)


Solution

  • Window.Location.assign(anchor.getHref());
    

    should work.