نسخة الكود كما يلي:
<span style = "font-family: Times New Roman ؛ Font-Size: 18px ؛"> <script type = "text/javaScript">
// ركز المؤشر في نهاية النص
وظيفة المؤسسة () {
var e = event.srcelement ؛
var r = e.createTexTrange () ؛
R.Movestart ('حرف' ، e.value.length) ؛
R.Collapse (صحيح) ؛
R.Select () ؛
}
</script>
<type type = text name = "test" value = "test" onfocus = "cursorend ()"> </span>