I do not think this is possible with just HTML unless you use iFrame. HTML is just mark-up language used primarily for front-end. You can accomplish this using php with the code below (adopted from
xFunda). You might not want to use tables. Or you can download the
Directory Indexer by CeleronDude.
CODE
<?php
/*
function that reads directory content and
returns the result as links to every file in the directory
also it disply type wheather its a file or directory
*/
function DirDisply() {
$TrackDir=opendir(".");
while ($file = readdir($TrackDir)) {
if ($file == "." || $file == "..") { }
else {
print "<tr><td><font face=\"Verdana, Arial, Helvetica, sans-serif\"><a href=$file target=_blank>$file</a></font> </td>";
print "<td> ".filetype($file)."</td></tr><br>";
}
}
closedir($TrackDir);
return;
}
?> <b><font face="Verdana, Arial, Helvetica, sans-serif">Current Directory Contain
Following files and Sub Directories...</font></b>
<p>
<?php
@ DirDisply();
?>