* @param attrValue the attribute value
*/
protected void createEventHandler(final String eventName, final String attrValue) {
final HtmlElement htmlElt = getDomNodeOrDie();
// TODO: check that it is an "allowed" event for the browser, and take care to the case
final BaseFunction eventHandler = new EventHandler(htmlElt, eventName, attrValue);
setEventHandler(eventName, eventHandler);
// forward onload, onclick, ondblclick, ... to window
if ((htmlElt instanceof HtmlBody || htmlElt instanceof HtmlFrameSet)) {
getWindow().getEventListenersContainer()
.setEventHandlerProp(eventName.substring(2), eventHandler);