The display of the related object does not update when you set the defaultValue property, only when you set the value property. See also Text.value focus Navigates to the text field and gives it focus. Parameters None Description Use the focus method to navigate to a text field and give it focus. You can then either programmatically enter a value in the field or let the user enter a value. If you use this method without the select method, the cursor is positioned at the beginning of the field.
Examples See example for select .
See also Text.blur , Text.select form An object reference specifying the form containing this object. Each form element has a form property that is a reference to the element's parent form. This property is especially useful in event handlers, where you might need to refer to another element on the current form. Examples Example 1. In the following example, the form myForm contains a Text object and a button.