Navigator 2.0, Internet Explorer 3.0
The focus() method of a form element transfers keyboard focus to that element without calling the onfocus() event handler. That is, it makes the element the active one with respect to keyboard navigation and keyboard input. Thus, if you call focus() for a Text element, then any text the user types will appear in that text element. Or, if you call focus() for Button element, then the user will be able to invoke that button from the keyboard.
All form elements, except the Hidden element support the focus() method. Unfortunately, not all platforms support keyboard navigation equally well. In Navigator 2.0 and 3.0 for Unix platforms, the focus() method is only functional for those form elements that display text: Text, Textarea, Password and FileUpload.
file: /Techref/language/JAVA/script/definitive/refp_103.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/11/25 18:02,
18.118.119.77:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/language/JAVA/script/definitive/refp_103.htm"> [Chapter 21] Reference: Element.focus()</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.