title: Javascript Document.write not working
body: <p>I am trying to dynamically populate a div based on the Innertext.  Can anyone tell me why this is not working?</p>
  
  <pre><code>&lt;div id="bs3" class="survey_dashboard_item" onclick="window.open('/building-specifications?bldgaddress=333 Johnson','_self');" style="font-size:40px; border:1px solid #bbb;"&gt;
      &lt;script&gt;
          window.onload = function Element(id) {
              if (this.innerText == '333 Johnson') {
                  document.write('&lt;div style="float:left; padding-left:10px; padding-top:10px;"&gt;&lt;img src="/checkmark.png" title="Project Entered"&gt;&lt;/div&gt;');
              } else {
  
              }
          }
      &lt;/script&gt;
  
          ***333 Johnson***&lt;/div&gt;
  </code></pre>