Published on: Thursday 17th April 1997 By: Martin Webb
This article will describe how it is possible to read the contents of a directory.
there are, however, certain limitations:
Apart from these limitations, it has plenty of potential.
The example I will demonstrate will use the following frame structure:
The test.htm document defines two frames:
The test.htm file loads a directory listing in the bottom directory frame (which in this example is the images directory on the irt.org we-site.)
The reason this does not work in Internet Explorer, is that the browser does not create HTML hypertext links to the files.
To ensure that the directory frame is completely loaded, we use the onLoad() event in the FRAMESET to load the main.htm document into the main frame.
The contents of the main.htm document is as follows:
Why not try out the example for yourself?