473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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

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
Jan 4 '07 #1
6 4877
just open the page in iexplore and select mht in save as type.
Jan 4 '07 #2
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 ?
Jan 4 '07 #3
AricC
1,892 Expert 1GB
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.
Jan 4 '07 #4
drhowarddrfine
7,435 Expert 4TB
HTML is a "markup" language, ie, it describes content. It is not a programming language.
Jan 4 '07 #5
acoder
16,027 Expert Mod 8TB
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.
Jan 4 '07 #6
AricC
1,892 Expert 1GB
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.
Jan 4 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: David D. | last post by:
Does the file extension matter when including a JavaScript file in an HTML page? Normally, one would include a JavaScript file in an HTML page using <script src="foo.JS" type="text/javascript">...
22
by: Trevor Orton | last post by:
Hello, I'm having a slight problem using the W3C html validator and I've reviewed the FAQ's with no luck so hopefully someone here would be kind enough to point me in the right direction. I...
5
by: who be dat? | last post by:
Hello all. I'm writing an application that is writing trace information that can be viewed in trace.axd. I would like to rename this and use a different name specific to my application. I know...
8
by: guppywon | last post by:
I am trying to map ASP.NET execution to the ".html" extension. And I am encountering a strange error. I'm looking for help configuring my ".html" pages to execute as ".aspx" pages. I have added...
59
by: Lennart Björk | last post by:
Hi All, I have a tiny program: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>MyTitle</title> <meta...
4
by: csgraham74 | last post by:
Hi, Ive posted on this previously but had no response. Basically i need to build some html using a rich text editor. Then i want to actually create an html document from this and save it to my...
2
by: Radu | last post by:
Hi, I have a "select" control named "cboSelectScorecardType", defined as <select id="cboSelectScorecardType" size="1" runat="server"> </select> which shows a list of files on my drive. It...
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
1
by: sandysharma | last post by:
how to write a script(batch file or dat file ) to change extension of files from .RPT to .html actually I also want to ftp file first form the unix server to the window ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.