Home >Web Front-end >JS Tutorial >js sample code to set the focus position in the text box at the end (simple and practical)_javascript skills
You can use this.focus(); directly in Firefox browser.
In IE, after this.focus();, assign the value of the text box to the text box, and the focus will be at the end. It's very simple! !
For example:
tar.focus();
tar.value=tar.value;
}