If I have an application hosted in a directory. The application path is the name of the directory.
for example
http://192.168.1.2/AppName/some.html
How to get application name using javascript, as in my case /AppName .
document.domain returns the host name, and document.URL returns the entire URL.
EDIT
The application path may be more complex, for example /one/two/thre/
javascript
user137348
source share