Excel and IE7 - Prevent IE from opening Excel files
excel, html, javascript
Solution
its been a long time but I used to do something like this. This is server side code obviously, I know you specified javascript/html.
Response.ContentType = "application/vnd.ms-excel";
Response.AppendHeader("content-disposition", "attachment;filename=test.xls");
EDIT
Here is a decent enough example though a little old http://aspalliance.com/259_Downloading_Files__Forcing_the_File_Download_Dialog
Problem
I have a intranet webpage that is used to hyperlink to various files on a file server. The problem with the local-file linking is that Microsoft Excel files are opened in IE7 instead of Excel. This results in the Excel files VBA code and other features from working correctly. Is there a way using HTML/Javascript to force the file to be opened in Excel instead of IE7?