title: How to retrieve hidden field value using javascript?
body: <p>I've asp.net web site , I used master page for the design. I've child page which is placed in the <strong>contentplaceholder</strong>. On the child page i used one hidden field as -</p>
  
  <pre><code>&lt;input id="Hidden1" type="hidden" value="This is hidden text"/&gt;
  </code></pre>
  
  <p>I want to display the hidden field value using alert() function from javascript on the <strong>page load event</strong>. How to do this?</p>
  
  <p>I tried following thing in my script but it is not working-</p>
  
  <pre><code>(function msgShow() {
  
          var e1 = document.getElementById('Hidden');
          alert(e1.value);
      })();
  </code></pre>
  
  <p>Thanks.</p>