<script> Arr={} Arr['color'] = 'red'; Arr['size'] = 'big'; for( var ArrVal in Arr ) { alert( ArrVal ); } </script>