 <p>If you mean JavaScript code running in a web browser and figuring out the name of the other folder on your server, no, there's no (reasonable) way to do that.</p> <p>(The <em>un</em>reasonable way would be to do a bunch of ajax requests with guesses about what the other folder's name was, working through various alphanumeric combinations, etc., handling the 404s until it got lucky. Like I said, unreasonable. And you'd have to have the name of a resource in that folder unless it supported a default document.)</p>