title: Flash the title bar
body: <p>I am try to get the title bar to flash, using very basic HTML. I've given it a shot, but the code below doesn't seem to work, and I have no idea why. Also, is there a way to make the title bar flash text, but only if the user is not viewing the current browser page?</p>
  
  <p>My attempt:</p>
  
  <pre><code>function Flash() {
              window.setTimeout(function() {
              alert(document.title);
                  document.title = (document.title == "Company" ? "Company - flash text" : "Company");
              }, 1000);
  
              this.stop = function() { 
                  document.title = "Company";
                  clearTimeout(this.timer);
              }
          }
  </code></pre>