views:

76

answers:

1

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.

How can I simply detect if the page is being browsed from an hta file container?

A: 

I haven't tested, but wouldn't just looking at window.location work?

Matthew Flaschen
No. Although the app is opened by an hta file (which contains the login screen), once logged in, the users are browsing normal html files of the web app. Window.location just gives the users current location.
rjmunro