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
6 4901
just open the page in iexplore and select mht in save as type.
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 ?
AricC 1,892
Recognized Expert Top Contributor
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.
HTML is a "markup" language, ie, it describes content. It is not a programming language.
acoder 16,027
Recognized Expert Moderator MVP
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.
AricC 1,892
Recognized Expert Top Contributor
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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">
However, I have found that I can use an alternate file extension, such as
<script src="foo.HTML" type="text/javascript">
It works fine with my IE 6 and Mozilla. Will it work with other browsers?
|
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 recently validated my site's css and the bulk of the html pages via the
W3C validator but was forced to use the file upload option because the
'Validate by URL' option returns the following error:
>>Sorry, I am unable to validate this document because...
|
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 the name of this is set in
machine.config. I was hoping it would be possible to change this in
web.config. I got it to work, kind of. Good news is I can change the name in
my web.config file. Bad news is that trace.axd still works meaning I can...
|
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 the IIS file extension mapping, I have also added the
following to the Web.Config file:
<compilation>
<buildProviders>
<add extension=".html"
|
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 http-equiv="Content-Type" content="text/html;
| |
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 server. Does
anyone have any examples on how to do this ??
I dont really understand how to get from HTML string to HTML document.
I can probably work out how to save this. do i create an html object ??
|
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 does not post back, nor do
I want it to. After the user selects a document in the combo, I want a
|
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 and PEAR is in c:\wamp\php\pear
I modified php.ini in the c:\wamp\php directory to reflect the actual
path, but even stopping and restarting my server shows the c:
\php5\pear path. I can't change it no matter what I do I also tried
the...
|
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
Details: my files are getting generated as .RPT on unix machine and i want to change the extension of the file and also want to ftp my file to the window in the same script.
Please help me if you have solution of it .
...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |