Enumerator is a proprietary Microsoft object that iterates over items in a group.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | 4.0+ | no | no | no | no |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Creates a new instance of an Enumerator object. | 4.0+ | no | no | no | no |
Methods
| Method | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Returns true if the current item is the last one in the group. | 4.0+ | no | no | no | no |
Returns the current item in the group. | 4.0+ | no | no | no | no |
Moves the current item to the first position in the group. | 4.0+ | no | no | no | no |
Moves the current item to the next position in the group. | 4.0+ | no | no | no | no |
Remarks
IE only. Supported in IE4+.
Availability
JScript 3.0
Constructor Detail
Enumerator Enumerator(Object group)
Creates a new instance of an Enumerator object.
| Object | group | Group of items to be iterated over. |
Method Detail
atEnd() : Boolean
Returns true if the current item is the last one in the group.
- Remarks
- IE only. Supported in IE4+.
- Availability
JScript 3.0
item() : Object
Returns the current item in the group.
- Remarks
- IE only. Supported in IE4+.
- Availability
JScript 3.0
moveFirst() : Object
Moves the current item to the first position in the group.
- Remarks
- IE only. Supported in IE4+.
- Availability
JScript 3.0
moveNext() : Object
Moves the current item to the next position in the group.
- Remarks
- IE only. Supported in IE4+.
- Availability
JScript 3.0
