
String
JavaScript Pocket Reference
|
115
focus()
Grabs the keyboard focus and returns nothing.
remove(n)
Removes the nth element from the options[] array. Returns
nothing. DOM Level 1.
Event Handlers
onblur
Invoked when input focus is lost.
onchange
Invoked when the user selects or deselects an item.
onfocus
Invoked when input focus is gained.
See Also
Form, Input, Option
String
string manipulation
Core JavaScript 1.0; JScript 1.0; ECMA v1
Inherits From: Object
Constructor
String(s)
new String(s)
Without the new operator, the String() function converts its argu-
ment to a string. With the
new operator, it is a constructor that
wraps the converted value in a String object.
Properties
length
The number of characters in the string. Read-only.
Methods
charAt(n)
Returns the character at position n in the string.