if (ie && event != ATTRIBUTE_NOT_DEFINED && forr != ATTRIBUTE_NOT_DEFINED) {
if ("window".equals(forr)) {
// everything fine, accepted by IE and FF
final Window window = (Window) getPage().getEnclosingWindow().getScriptObject();
final BaseFunction function = new EventHandler(this, event, scriptCode);
window.jsxFunction_attachEvent(event, function);
}
else {
try {
final HtmlElement elt = ((HtmlPage) getPage()).getHtmlElementById(forr);
elt.setEventHandler(event, scriptCode);