title: javascript detect if being run in hta
body: <p>We'd like to allow our users to download an hta file and run our web app inside it, and have certain pages detect that they are running in an hta file and offer additional features that a web app wouldn't normally have permission to do.</p>
  
  <p>How can I simply detect if the page is being browsed from an hta file container?</p>