I want the users of my application to be able to open a CSV (comma separated values) file. Using the following javascript, I get the IE File Download dialog that asks the user if they want to "Open this file from its current location" or "save this file to disk". When I select "open", I get a new window with the data presented in an Excel spreadsheet. This is exactly the behavior I want. However, when I select "save" I get a new window with the "No page to display" message. I can close the window and save the file, but I am looking for a solution that prevents the window from being displayed at all. Any help would be appreciated.
<html>
<body>
<input type="button" value="Open CSV" LANGUAGE=javascript onclick=javascript:window.open("Documents/test.csv"
>
</body>
</html>
<html>
<body>
<input type="button" value="Open CSV" LANGUAGE=javascript onclick=javascript:window.open("Documents/test.csv"
</body>
</html>