Is there any way to get current directory using only javascript and without regular expressions?
<p>Is there any way to get only the current directory (the directory containing the webpage in use), without using regular expressions to breakdown the url? </p>
