title: keep focus on text input field if another input field is not clicked
body: <p>I am trying to create an onblur event where any time some one clicks anywhere on the page it will stay focused on that element unless it is a specif element then it will refocus to that specific element.
  I am probably way off but this is what I tried, and it just stays focused on the Barcode element no matter what.</p>
  
  <pre><code>function stayOnBarcode() {
      var QTY = document.getElementById("QTY");
      var Barcode = document.getElementById("Barcode");
      if (Barcode.value === "") {
          if (QTY.focus() === true) {
              QTY.focus();
          }
          else if (document.hasFocus() === true) {
              Barcode.focus();
          }
      }
      else {
          Barcode.focus();
      }
  }
  </code></pre>