title: How to pass Object as parameter to java script function on onClick
body: <p>My main goal:
  When i click the link, a new window should be opened and display the content of entire log file in that window and the window should not have an address bar and navigation buttons (Back, Forward).</p>
  
  <p>Is there any other approach that i can reach my goal?</p>
  
  <p>Here is what i am trying to do, I am trying to call the java script method by passing the url of log file and thought of implementing the code to open new window</p>
  
  <pre><code>&lt;table id="serverLogsStats" class="serverLogsView"&gt;
     &lt;c:forEach var="log" items="${logsList}" varStatus="i" &gt;
        &lt;tr&gt;
          &lt;td&gt;${log.name}&lt;/td&gt;            
          &lt;td&gt;&lt;a href="#" onclick="openLog('${log}');"&gt;Open log&lt;/a&gt;&lt;/td&gt;        
        &lt;/tr&gt;
     &lt;/c:forEach&gt;
  &lt;/table&gt;
  
  
  &lt;script&gt;
  function openLog (log) {
      var abc = log.name;
      alert(abc);    
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>When i pass an object 'log' to the openLog function, the value is passing as a String. I want the log to be passed as an object.</p>
  
  <p>Here my output is coming as undefined.</p>
  
  <p>If i put 'alert(log);' it is printing the address of the object</p>