title: how do I pass parameters to onclick="window.location" in LI
body: <p>I'm working on MVC4
  want to set parameter value from Model inside <code>li onclick window.location</code></p>
  <blockquote>
  <p>Name = MyValue is hard-coded here</p>
  <p>How do I set parameter from Model i'm using foreach loop to iterate.</p>
  </blockquote>
  <pre><code>&lt;ul class=&quot;my_list&quot;&gt;
          &lt;li style=&quot;position: relative&quot; onclick=&quot;window.location='/Mypage?Name=MyValue'&quot;&gt;
           &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  <blockquote>
  <p>onclick is in <code>li</code> how can I set my parameter value there ?</p>
  </blockquote>