[Phpwm] [OT] JavaScript Scope Problem

Greg Jones greg.jones at gmail.com
Fri Aug 10 16:51:40 BST 2007


inside an event handler, 'this' refers to the element the event is
running on, so use it as the argument:

box.onclick = function() {
  return highlight_row(this);
};


Greg



More information about the Phpwm mailing list