17/11/2010 Development / java script

Só funciona no IE!

        var myArray = new Array("sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday");
        var collection = new Enumerator(myArray);
       
        for( collection.moveFirst(); !collection.atEnd(); collection.moveNext() )
        {
            document.write( collection.item() + "<br />");
        }