I'm new to client-side Java scripting ... that said .... I use C# in CodeBehind, I get the ASP .NET application path using the following code.
string mRootPath = Request.ApplicationPath;
h-1, 1) == "/")
mRootPath = mRootPath.Substring(1, mRootPath.Length-1);
string mPath = Request.Url.GetLeftPart(Ur
uthority) + mRootPath + "/";
Resulting in mPath equal to ...
during development> http://localhost/MyApp/
once deployed> http://MySite.com/
I need to get the same information on the Client-Side using Java Script.