Current Directory

[Total: 0    Average: 0/5]

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

Head Code:

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

Body Code:

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

Times Viewed: 8

Leave a Reply

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