How do I pass parameters in window.open method
<p>How do I pass parameters in window.open method.</p>

<pre><code>&lt;table id="tblUsers" cellspacing="0" &gt;
        &lt;asp:Repeater ID="repUsers" runat="server"&gt;
        &lt;ItemTemplate&gt;
        &lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;a ID="hlUser" runat="server"  Target="_new"  onclick="return OpenWindow();" &gt;&lt;%# Eval("Username") %&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
        &lt;/ItemTemplate&gt;
        &lt;/asp:Repeater&gt;
    &lt;/table&gt;

function OpenWindow() {
    var toUsername = document.getElementById("hlUser");
    window.open("ChatWindow.aspx?username=" + toUsername.value, "ChatWindow", "width=350,height=250");
    return null;
}
</code></pre>
