Connecting Tech Pros Worldwide Forums | Help | Site Map

How to change HTML file extension as .mht using HTML code ?

Newbie
 
Join Date: Jan 2007
Posts: 2
#1: Jan 4 '07
Friends..
I have a HTML file.
Using HTML Code, I want to change its file extension from .html to .mht.
eg : TestFile.html to be converted to TestFile.mht
Anybody has any idea about this ? Please let me know.
Thanks in advance.

Regards,
Vishal

pravinda's Avatar
Newbie
 
Join Date: Dec 2006
Location: Kathmandu, Nepal
Posts: 28
#2: Jan 4 '07

re: How to change HTML file extension as .mht using HTML code ?


just open the page in iexplore and select mht in save as type.
Newbie
 
Join Date: Jan 2007
Posts: 2
#3: Jan 4 '07

re: How to change HTML file extension as .mht using HTML code ?


Hi,
I know by using "save as" option, we can save the file in .mht format.
However, my concern is - I want HTML Code to perform this activity.
Can we write something in HTML using which we can perfrom above operation ?
Expert
 
Join Date: Oct 2006
Location: NC
Posts: 1,722
#4: Jan 4 '07

re: How to change HTML file extension as .mht using HTML code ?


Quote:

Originally Posted by VishalK

Hi,
I know by using "save as" option, we can save the file in .mht format.
However, my concern is - I want HTML Code to perform this activity.
Can we write something in HTML using which we can perfrom above operation ?

HTML can't do this.
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,571
#5: Jan 4 '07

re: How to change HTML file extension as .mht using HTML code ?


HTML is a "markup" language, ie, it describes content. It is not a programming language.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#6: Jan 4 '07

re: How to change HTML file extension as .mht using HTML code ?


Even Javascript can't (or shouldn't) be able to do that, and it's a programming language! Why do you want to do it with HTML only? Could you not use a programming language? And which files are you trying to change the extension of? Files on the client or the server? If it's on the client, then that shouldn't be allowed.
Expert
 
Join Date: Oct 2006
Location: NC
Posts: 1,722
#7: Jan 4 '07

re: How to change HTML file extension as .mht using HTML code ?


Also, not really sure what you are planning on doing this for/to but if you make the browser something other than a recognized file type it will display in a plain text format.
Reply