JavaScript Help

MrNutz

Banned
Oct 18, 2001
851
0
0
Does anyone know how can I retrieve the current directory name and then output it as text using JavaScript?

thanx :p
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
Do you mean the current virtual directory? like http://site/folder/ and you want to get the folder? You can access the url using location.href and then do string manipulation on it to get the foldername