return this;
}
return null;
}
public void handleEvent (nsIDOMEvent devent) {
nsIDOMElement element = (nsIDOMElement)devent.getTarget().queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
String text = element.getFirstChild().getNodeValue();
if(text == null || text.trim().isEmpty() || "null".equalsIgnoreCase(text)) return;
search(text.trim());
}
};
target.addEventListener ("click", listener, false);