Ads by Lake Quincy Media
| Next Tip?
Home » Javascript

Move Cursor to the Last Index in The Texbox

18 June 2009 842 views 2 Comments
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Code for script section in the head

<script type=“text/javascript” language=“javascript”>
function moveindex() {
var me2 = document.selection.createRange();
me2.moveStart(“character”, 200);
me2.select();
}
</script>

code for calling the function in the body section

&lt;asp:TextBox ID="TextBox1" runat="server" onfocus="moveindex()"/&gt;


Thanks and Regards
Meetu Choudhary

Popularity: 3%

Post to Twitter Tweet This Post

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Ads by Lake Quincy Media

2 Comments »

  • Lacy said:

    Pretty nice post. I just stumbled upon your site and wanted to say
    that I’ve really liked reading your blog posts. In any case
    I’ll be subscribing to your feed and I hope you write again soon!

  • Lacy said:

    Loved your latest post, by the way.

Leave your response!

You must be logged in to post a comment.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes