<SCRIPT LANGUAGE="JavaScript"> <!-- var b={ a:1,b:2}; for (var i in b){ Object[i] = b[i]; } alert ( Object.b ); //--> </SCRIPT>