Quick Search:
 
 JavaScript: Put Cursor At Top Of Textarea Jump to:  
Category: >> JavaScript >> Put Cursor At Top Of Textarea  

<< lastnext >>

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;
 


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org