View Full Version : Focus in textarea

8 Jun 2008, 9:52 AM
I have a dialog box with a text-area, which works fine. However I want to change
the behaviour so that when the user clicks the mouse on the text area, it always
moves the cursor to the top of the window (ie the first character in the window)
rather than the arbitary position.

I've tried capturing the onfocus event and scrolling the window, but this doesnt
seem to help.

Any ideas :)