Pass variables through Quoted Javascript String
<p>I have a function which returns a string which contains a javascript call. Since it is quoted I cannot pass variables through it. </p>

<p>How can I change the return string which would enable me to pass javascript object values. </p>

<p>Ex: How can I pass <code>var i</code> through the return statement.</p>

<pre><code>var i = 'iaa';
</code></pre>

<p><code>return '&lt;a href="javascript:abccd(\'i\');" &gt;&lt;img src="../images/btnsave2.png" style="margin:6px 0 0 6px;" height="13" width="13" /&gt;&lt;/a&gt; ';</code></p>
