ClickHandler on an existing element in GWT

Posted by Honza Pokorny on Stack Overflow See other posts from Stack Overflow or by Honza Pokorny
Published on 2010-05-19T21:35:44Z Indexed on 2010/05/19 22:00 UTC
Read the original article Hit count: 691

Filed under:

I have an HTML document. In that document, there is an element (like button, div, a) with an ID. I know I can use:

Document.get().getElementById("id");

to find the required element in the HTML file. How can I add a Click handler to it? ClickHandlers only seem to be available on the Button class.

Thanks

© Stack Overflow or respective owner

Related posts about gwt