title: Pass a string parameter in an onclick function
body: <p>I would like to pass a parameter (i.e. a string) to an Onclick function.</p>
  <p>For the moment, I do this:</p>
  <pre><code>'&lt;input type=&quot;button&quot; onClick=&quot;gotoNode(' + result.name + ')&quot; /&gt;'
  </code></pre>
  <p>with result.name for example equal to string &quot;Add&quot;.</p>
  <p>When I click on this button, I have an error that says that <em>&quot;Add is not defined&quot;</em>. Since this function call works perfectly with a numeric parameter, I assume that it has something to do with the symbols &quot;&quot; in the string.</p>
  <p>How can I fix this problem?</p>