undefinedfix
Sign in

How to open MHT file in web page?

zazke edited in Sun, 05 Sep 2021

1. Can you open local files with JS? 2. I want to embed the MHT file into HTML, and try < iframe / > to display blank. Is there any other way?

3 Replies
krauseandkinsman
commented on Sun, 05 Sep 2021

MHT file is a kind of Web e-mail file launched by Microsoft, which can't be read by general browsers, and can only be recognized by IE browser with Outlook Express installed.

user282
commented on Sun, 05 Sep 2021

$.get(" xxx.mht ",function(data){

console.log(data);

}) data is the text you want, just use jQuery's get request

MikeRyz
commented on Sun, 05 Sep 2021

Request to deal with it, the format is relatively simple

lock This question has been locked and the reply function has been disabled.