title: Javascript to access control in MasterPage
body: <p>I have a textbox control Super1 in my MasterPage.</p>
  
  <p>I am using javascript to access this control from my content page like this:</p>
  
  <pre><code>&lt;asp:Content ID="ContentPage" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"&gt;
  &lt;script type="text/javascript"&gt;
      function Somethin() {
          {
              document.forms[0].elements['Super1'].value = "sdfsd";
              //document.getElementById('&lt;%=Super1.ClientID%&gt;').value = "sdfsdf";                
          }
      }
  &lt;/script&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>But while page load it says Super1 not found. How can I access Super1?</p>