1. why browser can only open .txt file directly, pop up open or save dialog for others?
2. html cannot open local files but only send the file to server and request that file again previously.
now in html5, there is a FileReader
3. When you click a link to download a file, the MIME type determines what action is taken.
in browser, you can config different action for different file type.