title: Javascript Error: Cannot Convert Object to Primitive Value
body: <p>I'm receiving this error using the following javascript code:</p>
  
  <pre class="lang-js prettyprint-override"><code>function tempTest(evt) {
      alert(evt.currentTarget.id);
      ct = document.getElementById(evt.currentTarget.id);
      rslt = document.getElementById('rslt');
      var props;
      for (var prop in ct) {
          if (ct.hasOwnProperty(prop)) {
              propVal = ct[prop];
              var propDat = prop + ' = ' + propVal;
              props += propDat + '&lt;br/&gt;';
          }
      }
      rslt.innerHTML = props;
  }
  </code></pre>
  
  <p>This one has me puzzled. Any ideas?</p>