Current Directory

[Total: 0    Average: 0/5]

Takes the user to a directory listing of all files in the current directory.

Head Code:

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var myloc = window.location.href;
var locarray = myloc.split("/");
delete locarray[(locarray.length-1)];
var arraytext = locarray.join("/");
//  End -->
</script>

Body Code:

<center>
<form>
<input type=button value="Show Current Directory Listing (Or Index.html Page)" onClick="window.location=arraytext;">
</form>
</center>

Times Viewed: 5

Leave a Reply

Your email address will not be published. Required fields are marked *