DOM Level 2: Java (1/3)


Accessing a specific element from an event

Element mytext = 
 ((Node) event.getTarget())
   .getOwnerDocument()
   .getElementById("mytext");