How do I traverse a hashtable in Javascript?

I looked at the mono docs and I really cant understand the example there in C#. Can anyone shed some light on how I can traverse hashtable data. From the hashtable I want to create a wwwform. I'm using something like:

for (var field in myHashtable)
    {
        form.AddField( field.Key, field.Value );//I want to build a wwwform from the table
    }

Cheers

This seems to do the job:

for (var field: DictionaryEntry  in myHashtable)//get the fields
    {
       print("Key:"+field.Key+" Val: "+field.Value );
       form.AddField( ""+field.Key, ""+field.Value );
    }