title: Button not working - Uncaught TypeError: Cannot read property 'value' of null
body: <p>I found there is button compatibility on different browser(s). It was only working in Internet Explorer and get no response if i click the button in any other browsers ( like chrome, Firefox)</p>
  
  <p>Below error was shown from Chrome console, 
  "  Uncaught TypeError: Cannot read property 'value' of null
  -doQuery
  -onclick"</p>
  
  <p>Here is the code :
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function doQuery(){
   var Key = document.getElementById('searchObj.Key').value;
   }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input type="text" name="searchObj.Key" maxlength="6" size="12" value="" class="textbox"&gt;
  
  
  &lt;input type="button" class="btn_c" name="btnf8" value="Go" onclick="doQuery()"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks for the help.</p>