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