You are here: irt.org | FAQ | JavaScript | Link | Q1459 [ previous next ]
Try:
<script language="JavaScript"><!-- thePath = ''; loc = '' +location.href; paths = loc.substring(7).split('/'); file = loc.substring(0,6); for (i=0, n=paths.length;i<n;i++) { file += "/" + paths[i]; thePath += '> <a href="' + file + '">' + paths[i] + '<\/a> '; } document.write('You are here: ' + thePath.substring(1)); //--></script>