Content deleted Content added
→Disadvantages: minor language edits |
reordered major sections, integrated useful stuff from Disadvantages to main article, removed opinions |
||
Line 26:
}}
An '''HTML Application''' ('''HTA''') 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 internet browser security model; in fact, it executes as a "fully trusted" application.
The usual file extension of an HTA is <code>.hta</code>.
Line 33:
== Uses ==
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
* The engine of HTA files (mshta.exe) is completely dependent on [[Internet Explorer]]. In [[Windows Vista]], for the first time, the user can [[Removal of Internet Explorer|remove Internet Explorer]] from Windows, which will cause a serious bug for the engine of HTA files.▼
==Environment==
Line 53 ⟶ 41:
[[File:HTA-Hello World example.png|thumb|300x300px|Screenshot of an example window produced by <code>mshta.exe</code>]]
An HTA is executed using the program <code>mshta.exe</code>, or, alternatively, double-clicking on the file. This program is typically installed
An HTA is treated like any executable file with extension [[EXE|<code>.exe</code>]]. 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.<ref>[https://msdn.microsoft.com/en-us/library/ms536496(v=vs.85).aspx ''Why Use HTAs''], in MSDN Library, Introduction to HTML Applications</ref>
By default, HTAs are rendered as per "standards-mode content in IE7 Standards mode and quirks mode content in IE5 (Quirks) mode", but this can be altered using <code>X-UA-Compatible</code> headers.<ref>[https://msdn.microsoft.com/en-us/library/ms536496%28v=vs.85%29.aspx#Compatibility] Introduction to HTML Applications (HTAs) - Compatibility</ref>
▲
HTAs are fully supported in Internet Explorer from versions 5 to 9. Further versions, such as 10 and 11, still support HTAs though with some minor features turned off.{{fact}}
===Security considerations===
Line 65 ⟶ 57:
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 'trusted' environment, querying [[Active Directory]] can be subject to Internet Explorer Zone logic and associated error messages.
==
To customize the appearance of an HTA,
Any text editor can be used to create an HTA. Editors with special features for developing HTML applications may be obtained from Microsoft<ref>[http://www.microsoft.com/downloads/details.aspx?FamilyId=231D8143-F21B-4707-B583-AE7B9152E6D9&displaylang=en ''HTA Helpomatic'']</ref> or from third-party sources.<ref>[http://www.htaedit.com/ ''HTAEdit, an editor for HTAs with a built-in debugger'']</ref>
Line 97 ⟶ 86:
*[[Firefox OS]]
*[[PhoneGap]]
*[[XUL]] and [[XULRunner]] - a language and environment for Mozilla cross-platform applications that
==References==
|