(send: that is to emulate typing these keys as user would normally do it)
I know this metod element.value = element.value, but I think it might 开发者_JAVA技巧be slow for textareas that have huge amount of data in them, like wikis etc.
Check this SO question: Javascript: Move caret to last character
精彩评论