> I would like to display a local directory in an iframe or a webpage
You can try pointing to file:///C or in a frameset, but it will only
work on Windoze machines. It also won't (or shouldn't) work in most
browsers (esp when done thru JS) due to security restrictions, and
anything on the users computer is completely off limits to JS in all
but the worst browsers.
I have been to websites that display my C:\ directory
Your browser has lax security, or you have changed your security
settings. Are you sure it wasn't a file upload dialog?