title: How to pass Object as a parameter in Javascript
body: <p>I want to pass Object in function. Here is my code</p>
  
  <pre><code>var hyperLinkObj = new Object();
  hyperLinkObj.path="abc";
  hyperLinkObj.text="abctext";
  
  '&lt;li&gt;&lt;a href="#" onclick="onItemClick(hyperLinkObj)"&gt;'+description+'&lt;/a&gt;&lt;/li&gt;'
  </code></pre>
  
  <p>Here I am creating Object called as "hyperLinkObj" Now I am creating "li" tag and putting hyperlink in li Now When I inspect the I am getting something like </p>
  
  <pre><code>'&lt;li&gt;&lt;a href="#" onclick="onItemClick([object Object])"&gt;'+description+'&lt;/a&gt;&lt;/li&gt;'
  </code></pre>
  
  <p>So How can I pass the hyperLinkObject , as in the onItemClick I have do many thing on this Object.</p>
  
  <p>See Actually I wanted to do something like this.</p>
  
  <p>1] There is an Object which has many Category
     So wanted to loop through it.
  2] then on Each category item click wanted to call OnItemClcik with hyperLinkObj
  3] Then on click of on Hyperlink , wanted to do operation like fetching Hyperlink.path and show the Breadcrumb.
  4] and finally I am using Extjs 
     So Ext.Panel.update("Li text");</p>
  
  <p>May be I didnt mentioned that ExtJs.update.. it is not working as per your suggestion..</p>
  
  <p>Can you explain How can I achive this ? </p>