Objects as associative arrays <script language="javascript" type="text/javascript"> <!-- testObj = { prop1:"hello", prop2:"hello2", prop3:new Array("helloa",1,2) } for(x in testObj) alert(x + "-" + testObj[x]); //--> </script>