Snippet Name: Put Cursor At Top Of Textarea
Description: Puts the cursor at the top of a textarea (rather than at the bottom).
Comment: (none)
Language: JAVASCRIPT
Highlight Mode: JAVASCRIPT
Last Modified: February 28th, 2009
|
// position cursor at top of textarea
FUNCTION selTA() {
document.send.body_text.FOCUS();
document.send.body_text.selectionStart=0;
document.send.body_text.selectionEnd=0;
}
window.ONLOAD = selTA;
|