title: document.getElementbyId: Object required
body: <p>I have some code on a classic ASP page that is attempting to get the <code>innerHTML</code> of a <code>&lt;div&gt;</code> element.</p>
  
  <pre><code>    Dim oElm 
      Set oElm = document.getElementById("screenDiv")
  
      if oElm Is Nothing then
          '''
      else
          document.getElementById("screenDiv").innerHTML = ""
      end if
  </code></pre>
  
  <p>I've tried the above but I'm getting the Object Required error.</p>
  
  <p>What do I need to do to get around this error?</p>