Javascript to move cursor to the end of a textbox#
function setCursorAtEnd(sTextboxID) {
var oTextbox = document.all.item(sTextboxID);
if (oTextbox .createTextRange) {
var r = (oTextbox.createTextRange());
r.moveStart('character', (oTextbox.value.length));
r.collapse();
r.select();
}
}

Categories:  | 
Tuesday, October 14, 2003 1:58:36 PM (Central Standard Time, UTC-06:00) #    Comments [1]  | 

 

Tuesday, January 06, 2009 2:31:14 AM (Central Standard Time, UTC-06:00)
Thanks for this javascript function. Works very nice.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

All content © 2009, Christopher May, Inc
Open Job Positions
On this page
Google Ads
This site
Calendar
<October 2003>
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
Archives
Sitemap
Blogroll OPML
Disclaimer

Powered by: newtelligence dasBlog 1.9.6264.0

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts


Pick a theme: