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
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.

commented on Sun, 05 Sep 2021

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


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

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.