title: Simple condition that returns true if document.activeElement = ""
body: <p>I need to know if the selected element has an ID. </p>
  
  <p>What am I doing wrong?</p>
  
  <pre><code>  var selected = document.activeElement;
    if (selected.id = "") {
    document.getElementById('test3').innerHTML= "is blank";    
    }
  </code></pre>
  
  <p>Thanks</p>