I was wondering if theres a way to position the cursor to the postition that is 1 past the last character of the textarea. The code below puts the cursor at the last position but i need it to go 1 more space to the right:

function setCursorAtTheEnd(aTextArea,aEvent) {
var end = aTextArea.value.length;
if (aTextArea.setSelectionRange) {
} else {
var aRange = aTextArea.createTextRange();
aRange.moveEnd('character', end);
aRange.moveStart('character', end);
return false;