<textarea rows="8" cols="40" id="area">Кликни меня
</textarea>
<script>
area.onmousedown = function(e) { this.value += "mousedown\n"; this.scrollTop = this.scrollHeight; };
area.onmouseup = function(e) { this.value += "mouseup\n"; this.scrollTop = this.scrollHeight; };
area.onclick = function(e) { this.value += "click\n"; this.scrollTop = this.scrollHeight; };
</script>
<textarea rows="8" cols="40" id="area">Кликни меня
</textarea>
<script>
area.onmousedown = function(e) { this.value += "mousedown\n";};
area.onmouseup = function(e) { this.value += "mouseup\n";};
area.onclick = function(e) { this.value += "click\n"; this.scrollTop = this.scrollHeight; };
</script>