Calling Javascript function
<p>Extending a website I didn't build. I want to be able to call the ShowWindow proc with a parameter. How would I do that? New to JQuery and Javascript.</p>

<pre><code>default.aspx

&lt;script type="text/javascript" src="/scripts/jquery-1.2.6.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

$(document).ready(function() {
    $('a#ShowWindow').click(function() {
        window.open("TerminalInfo.aspx?", 'Info', 'scrollbars=yes,width=510,height=536');
    })
});
</code></pre>

<p></p>

<p>default.aspx.cs</p>

<p>Building the aspx dynamically...</p>

<pre><code>    public static string ToHtml(this Location location)
    {
        var html = new StringBuilder();

        html.Append("&lt;td&gt;&lt;a href='#' id='ShowWindow'&gt;ShowLetter&lt;/a&gt;&lt;/td&gt;");     //This works
        html.Append("&lt;td&gt;&lt;a href='#' id='ShowWindow(\"MyInfo.aspx\")'&gt;Read More&lt;/a&gt;&lt;/td&gt;"); //How can I do this? It doesn't work.

        return html.ToString();
    }
</code></pre>
