<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=HTML_Application</id>
	<title>HTML Application - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=HTML_Application"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=HTML_Application&amp;action=history"/>
	<updated>2026-10-26T02:21:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=HTML_Application&amp;diff=3860718&amp;oldid=prev</id>
		<title>imported&gt;KMaster888: ce</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=HTML_Application&amp;diff=3860718&amp;oldid=prev"/>
		<updated>2025-01-01T04:42:44Z</updated>

		<summary type="html">&lt;p&gt;ce&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Microsoft Windows program}}&lt;br /&gt;
{{This|Microsoft&amp;#039;s proprietary HTA implementation|information regarding the HTML5 Cache Manifest, also referred to as offline HTML applications|Cache manifest in HTML5}}&lt;br /&gt;
&lt;br /&gt;
{{Infobox file format&lt;br /&gt;
| name                   = HTML Application (HTA)&lt;br /&gt;
| icon                   = &lt;br /&gt;
| logo                   = &lt;br /&gt;
| screenshot             = &lt;br /&gt;
| caption                = &lt;br /&gt;
| extension              = {{mono|.hta}}&lt;br /&gt;
| mime                   = application/hta&lt;br /&gt;
| typecode               = &lt;br /&gt;
| uniform type           = &lt;br /&gt;
| magic                  = {{mono|%hta}}&lt;br /&gt;
| owner                  = [[Microsoft]]&lt;br /&gt;
| released               = &amp;lt;!-- {{Start date|YYYY|mm|dd|df=yes}} --&amp;gt;&lt;br /&gt;
| latest release version = &lt;br /&gt;
| latest release date    = &amp;lt;!-- {{Start date and age|YYYY|&amp;lt;mm&amp;gt;|dd|df=yes}} --&amp;gt;&lt;br /&gt;
| genre                  = &lt;br /&gt;
| container for          = &lt;br /&gt;
| contained by           = &lt;br /&gt;
| extended from          = &lt;br /&gt;
| extended to            = &lt;br /&gt;
| standard               = &lt;br /&gt;
| free                   = &lt;br /&gt;
| url                    = {{URL|1=https://learn.microsoft.com/en-us/previous-versions/ms536471(v=vs.85)?redirectedfrom=MSDN}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
An &amp;#039;&amp;#039;&amp;#039;HTML Application&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;HTA&amp;#039;&amp;#039;&amp;#039;) is a [[Microsoft Windows]] program whose source code consists of [[HTML]], [[Dynamic HTML]], and one or more scripting languages supported by [[Internet Explorer]], such as [[VBScript]] or [[JScript]]. The HTML is used to generate the user interface, and the scripting language is used for the program logic. An HTA executes without the constraints of the web browser security model; in fact, it executes as a &amp;quot;fully trusted&amp;quot; application.&lt;br /&gt;
&lt;br /&gt;
The usual file extension of an HTA is &amp;lt;code&amp;gt;.hta&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The ability to execute HTAs was introduced to Microsoft Windows in 1999, along with the release of [[Microsoft Internet Explorer 5]].&amp;lt;ref&amp;gt;[http://support.microsoft.com/kb/200874 &amp;#039;&amp;#039;Article ID:200874 in Microsoft Support&amp;#039;&amp;#039;], in Microsoft Support Knowledge Base&amp;lt;/ref&amp;gt; On December 9, 2003, this technology was [[patent]]ed.&amp;lt;ref&amp;gt;[http://news.cnet.com/2100-1012_3-5119072.html Microsoft wins HTML application patent]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Uses ==&lt;br /&gt;
HTAs give the developer the features of HTML together with the advantages of scripting languages. They are popular with Microsoft system administrators who use them for system administration from prototypes to &amp;quot;full-scale&amp;quot; applications, especially where flexibility and speed of development are critical.&amp;lt;ref name=msintro/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Environment==&lt;br /&gt;
&lt;br /&gt;
===Execution===&lt;br /&gt;
[[File:RectifiedWikipediaHTAWindow.png|alt=|thumb|346x346px|One screenshot of one example window that is produced by &amp;lt;code&amp;gt;mshta.exe&amp;lt;/code&amp;gt;]]&lt;br /&gt;
An HTA is executed using the program &amp;lt;code&amp;gt;mshta.exe&amp;lt;/code&amp;gt;, or, alternatively, double-clicking on the file. This program is typically installed along with Internet Explorer. &amp;lt;code&amp;gt;mshta.exe&amp;lt;/code&amp;gt; executes the HTA by instantiating the Internet Explorer rendering engine (mshtml) as well as any required language engines (such as vbscript.dll).&lt;br /&gt;
&lt;br /&gt;
An HTA is treated like any executable file with extension [[EXE|&amp;lt;code&amp;gt;.exe&amp;lt;/code&amp;gt;]]. When executed via mshta.exe (or if the file icon is double-clicked), it runs immediately. When executed remotely via the browser, the user is asked once, before the HTA is downloaded, whether or not to save or run the application; if saved, it can simply be run on demand after that.&amp;lt;ref name=msintro/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, HTAs are rendered as per &amp;quot;standards-mode content in IE7 Standards mode and quirks mode content in IE5 (Quirks) mode&amp;quot;, but this can be altered using &amp;lt;code&amp;gt;X-UA-Compatible&amp;lt;/code&amp;gt; headers.&amp;lt;ref name=msintro&amp;gt;{{cite web |url=https://msdn.microsoft.com/en-us/library/ms536496%28v=vs.85%29.aspx#Compatibility |title=Introduction to HTML Applications (HTAs).|website=Microsoft MSDN|date=May 2011  |access-date= 24 June 2016}} Sections include Why Use HTAs, Creating an HTA, HTA-Specific Functionality, Security, Compatibility, Deployment&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HTAs are dependent on the Trident (MSHTML) browser engine, used by [[Internet Explorer]], but are not dependent on the Internet Explorer application itself. If a user [[Removal of Internet Explorer|removes Internet Explorer]] from Windows, via the Control Panel, the MSHTML engine remains and HTAs continue to work. HTAs continue to work in Windows 11 as well.&lt;br /&gt;
&lt;br /&gt;
HTAs are fully supported running in modes equivalent to Internet Explorer versions 5 to 9. Further versions, such as 10 and 11, still support HTAs though with some minor features turned off.{{fact|date=May 2015}}&lt;br /&gt;
&lt;br /&gt;
===Security considerations===&lt;br /&gt;
{{main|Browser security}}&lt;br /&gt;
When a regular HTML file is executed, the execution is confined to the security model of the [[web browser]]. This means it is confined to communicating with the server, manipulating the page&amp;#039;s [[object model]] (usually to validate forms and/or create interesting visual effects) and reading or writing [[HTTP cookie|cookies]].&lt;br /&gt;
&lt;br /&gt;
On the other hand, an HTA runs as a fully trusted application and therefore has more privileges than a normal HTML file; for example, an HTA can create, edit and remove files and [[Windows Registry|registry]] entries. Although HTAs run in this &amp;#039;trusted&amp;#039; environment, querying [[Active Directory]] can be subject to Internet Explorer Zone logic and associated error messages.&lt;br /&gt;
&lt;br /&gt;
==Development==&lt;br /&gt;
To customize the appearance of an HTA, an optional tag &amp;lt;code&amp;gt;hta:application&amp;lt;/code&amp;gt; was introduced to the &amp;lt;code&amp;gt;HEAD&amp;lt;/code&amp;gt; section. This tag exposes a set of attributes that enable control of border style, the program icon, etc., and provide information such as the argument (command line) used to launch the HTA.&amp;lt;ref&amp;gt;[https://msdn.microsoft.com/en-us/library/aa360681(v=VS.85).aspx &amp;#039;&amp;#039;HTA:APPLICATION Object&amp;#039;&amp;#039;], in MSDN Library, the complete specification of the tag &amp;lt;code&amp;gt;hta:application&amp;lt;/code&amp;gt;&amp;lt;/ref&amp;gt; Otherwise, an HTA has the same format as an HTML page.&lt;br /&gt;
&lt;br /&gt;
Any text editor can be used to create an HTA. Editors with special features for developing HTML applications may be obtained from Microsoft&amp;lt;ref&amp;gt;[http://www.microsoft.com/downloads/details.aspx?FamilyId=231D8143-F21B-4707-B583-AE7B9152E6D9&amp;amp;displaylang=en &amp;#039;&amp;#039;HTA Helpomatic&amp;#039;&amp;#039;]&amp;lt;/ref&amp;gt; or from third-party sources.&amp;lt;ref&amp;gt;[http://www.htaedit.com/ &amp;#039;&amp;#039;HTAEdit, an editor for HTAs with a built-in debugger&amp;#039;&amp;#039;]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An existing HTML file (with file extension &amp;lt;code&amp;gt;.htm&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;.html&amp;lt;/code&amp;gt;, for example) can be changed to an HTA by simply changing the extension to &amp;lt;code&amp;gt;.hta&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Vulnerabilities==&lt;br /&gt;
HTA have been used to deliver malware.&amp;lt;ref&amp;gt;{{Cite web|url=https://www.vmray.com/cyber-security-blog/spora-ransomware-dropper-hta-infect-system/|title=Spora Ransomware Dropper Uses HTA to Infect System|date=2017-01-17|website=VMRay|language=en-US|access-date=2018-12-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web|url=https://blog.netwrix.com/2017/06/01/nine-scariest-ransomware-viruses/|title=8 Scariest Ransomware Viruses|language=en-US|access-date=2018-12-22}}&amp;lt;/ref&amp;gt; One particular HTA, named &amp;#039;&amp;#039;[[4chan]].hta&amp;#039;&amp;#039; (detected by antiviruses as JS/Chafpin.gen), was widely distributed by the users of the imageboard as a [[steganographic]] image in which the user were instructed to download the picture as an HTA file, which when executed, would cause the computer to automatically spam the website (evading 4chan&amp;#039;s [[CAPTCHA]] in the process) with alternate variants of itself; it was reported that such attacks were previously delivered in which the user was prompted to save it as a [[JavaScript|.js]] file.&amp;lt;ref&amp;gt;{{cite web |last1=Constantin |first1=Lucian |title=4chan Flood Script Is Back with New Social Engineering Trick |url=https://news.softpedia.com/news/4chan-Flood-Script-Is-Back-with-New-Social-Engineering-Trick-151603.shtml |website=Softpedia |access-date=2021-11-09 |date=2010-08-10}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This is an example of [[&amp;quot;Hello, World!&amp;quot; program|Hello World]] as an HTML Application.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
&amp;lt;HEAD&amp;gt;&lt;br /&gt;
&amp;lt;HTA:APPLICATION ID=&amp;quot;HelloExample&amp;quot; &lt;br /&gt;
   BORDER=&amp;quot;bold&amp;quot; &lt;br /&gt;
   BORDERSTYLE=&amp;quot;complex&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;HTA - Hello World&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
&amp;lt;BODY&amp;gt;&lt;br /&gt;
&amp;lt;H2&amp;gt;HTA - Hello World&amp;lt;/H2&amp;gt;&lt;br /&gt;
&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
*[[Adobe AIR]]&lt;br /&gt;
*[[Active Scripting]]&lt;br /&gt;
*[[Apache Cordova]]&lt;br /&gt;
*[[Chromium Embedded Framework]]&lt;br /&gt;
*[[Electron (software framework)]]&lt;br /&gt;
*[[Firefox OS]]&lt;br /&gt;
*[[React Native]]&lt;br /&gt;
*[[XAML Browser Applications]] (XBAPs)&lt;br /&gt;
*[[XUL]] and [[XULRunner]] - a language and environment for Mozilla cross-platform applications that resembles the mechanism of HTML Applications.&lt;br /&gt;
*[[Windows Script Host]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://msdn2.microsoft.com/en-us/library/ms531018.aspx HTML Component (HTC) Reference at MSDN]. An HTC encapsulates specific functionality or behavior within HTAs.&lt;br /&gt;
* [https://technet.microsoft.com/en-ca/scriptcenter/default.aspx The Script Center], The Script Center, home of Hey, Scripting Guy! Blog&lt;br /&gt;
* [https://technet.microsoft.com/en-ca/scriptcenter/dd742317.aspx Learn About Scripting for HTML Applications (HTAs)], a tutorial site for learning about HTA&amp;#039;s&lt;br /&gt;
&lt;br /&gt;
{{Internet Explorer}}&lt;br /&gt;
&lt;br /&gt;
[[Category:HTML|Application]]&lt;br /&gt;
[[Category:Internet Explorer]]&lt;br /&gt;
[[Category:User interface markup languages]]&lt;br /&gt;
[[Category:Widget engines]]&lt;/div&gt;</summary>
		<author><name>imported&gt;KMaster888</name></author>
	</entry>
</feed>