how to get usercontrol in javascript
<p>How can I get a handle on my user control in JavaScript?</p>

<pre><code>&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;
        &lt;uc1:WebUserControl ID="WebUserControl1" runat="server" Enabled="False" /&gt;
        &lt;input id="Button1" type="button" value="button" runat="server" onclick="return Button1_onclick()" /&gt;&lt;/div&gt;
    &lt;/form&gt;

    &lt;script type="text/javascript"&gt;
        var pageDefault = {
            uc: document.getElementById("&lt;%=WebUserControl1.ClientID%&gt;"),
            btn1: document.getElementById("&lt;%=Button1.ClientID%&gt;"),
            init: function() {
                this.btn1.onclick = function() {
                    uc.setAttribute('Enabled', 'True'); //uc is null at this point
                };
            }
        }
        pageDefault.init();
    &lt;/script&gt;

&lt;/body&gt;
</code></pre>
