title: How to pass a string to a function
body: <p>I want to give a string parameter to a function</p>
  
  <pre><code>function test(p)
  {
  }
  
  ...innerHTML = '&lt;div onclick="test(p)"&gt;&lt;div&gt;';
  </code></pre>
  
  <p>That does not work how to do it?</p>