HTML -> Excel

Ok here is the deal. I have an html file that needs to be opened with Excel when the file is accessed.

I can do this when i use php using the header() function.

I need to do the same thing but with html alone. So I tried using a meta tag.


<meta http-equiv='Content-Type: application/vnd.ms-excel'>

This doesn’t work. I was wondering if there is a different way or even a CORRECT way of doing this. Thanks :smiley: