user3313510
user3313510

Reputation: 11

.HTA file source code displayed

I have written the script in a .hta file and saved it on an apache server. Then I hit the appropriate url stating the hta file. In IE8 the file is executed and prompts for open, save, saveas. But in Mozilla and chrome the content of the hta file is displayed in the browser

Upvotes: 0

Views: 579

Answers (1)

Stephen Quan
Stephen Quan

Reputation: 26131

Have you configured the mime type for HTA correctly in Apache (it ought to be application/hta)?

IE 8 is probably compensating, but, Chrome and Firefox probably have no idea what it is. With the correct mime type being set in Apache, then, Chrome and Firefox will more likely react in the way you expect it to.

Upvotes: 1

Related Questions