Javascript storing value in key value form
<p>i want to store value like key and value pair in javascript </p>

<p>So far i am doing  like this </p>

<pre><code>var list_of_addressbook_entries = {};

list_of_addressbook_entries.guest_name = name ;

for(key in list_of_addressbook_entries)
{
  alert("key " + key
  + " has value "
  + list_of_addressbook_entries[key]);
}
</code></pre>

<p>In the above code guest_name is a variable which value is coming from a onclick<br>
so when i am doing the above it showing me the result like </p>

<pre><code> key guest_name has value M   
</code></pre>

<p>it is not printing the value of guest_name </p>

<p>i want the result like </p>

<pre><code>key guest_name_variable value  has key M
</code></pre>

<p>Please suggest me what to do here ?</p>
