Questions tagged [hta]

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. If your question is about scripting in HTA, always mention or add the tag of the used scripting language.

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 .hta.

The ability to execute HTAs was introduced to Microsoft Windows in 1999, along with the release of Microsoft Internet Explorer 5.

Useful links

941 questions
148
votes
15 answers

Take a screenshot of a webpage with JavaScript?

Is it possible to to take a screenshot of a webpage with JavaScript and then submit that back to the server? I'm not so concerned with browser security issues. etc. as the implementation would be for HTA. But is it possible?
Scott Bennett-McLeish
  • 8,908
  • 10
  • 38
  • 45
19
votes
7 answers

hta - Equivalents in Firefox, Chrome - Is this old technology?

I want to convert a webpage html5/js page to a desktop application. Something they can use on their desktop without a live internet connection. (I do not want to recode my html5 or js.) If the end user has Internet Explorer installed, I can easily…
Rewind
  • 1,978
  • 2
  • 23
  • 46
15
votes
1 answer

JavaScript version in HTA

Does anyone know what version of JavaScript is used by HTA files. Currently creating some script files - and trying to make use of Object.defineProperty When running as an HTA - it errors stating that Object doesn't support this property or method. …
DarrenNavitas
  • 239
  • 3
  • 11
15
votes
11 answers

Can I embed an icon to a .hta file?

I have written an HTML Application (hta file) and am wondering if there is a way to embed an icon file into the hta file itself. I have seen html emails that include embedded graphic files, is there any way to do this with html applications and…
BoltBait
  • 11,086
  • 9
  • 54
  • 84
14
votes
2 answers

Will Microsoft Edge and Windows 10 support HTA?

I'm working on an HTML Application for Windows 8.1, and, as our office soon will use Windows 10, I'm wondering if MS Edge and Windows 10 still support HTA.
Simon D
  • 193
  • 1
  • 2
  • 9
13
votes
4 answers

How to get the associated icon of a file in HTA (HTML/Javascript/VBScript)

I'm building an HTA application in which I need to display a list of file with their associated system icon. I'm using FileSystemObject to list the file but there seem to have no way to get the icon... I've found a script in VBS that can save the…
Patrick
  • 131
  • 3
13
votes
4 answers

Can a .BMP file be stored in an HTA (HTML/VBScript)?

I've noticed in a backup of my FireFox bookmarks that the icon which is displayed to the left of each entry is held as a character stream in the A tags. For example: ICON="data:image/png;base64,iVBOR [data removed to shorten example] …
user2303217
11
votes
2 answers

How can I open a link in the default web browser from an HTA?

I'm working on an application that is implemented as an HTA. I have a series of links that I would like to have open in the system's default web browser. Using opens the link in IE regardless of the default browser. Is…
Joel Anair
  • 13,248
  • 3
  • 28
  • 35
9
votes
2 answers

How do I add coordinates to an SVG polyline?

How do I add coordinates to an existing SVG polyline with JavaScript?
TK421
  • 480
  • 5
  • 9
  • 18
9
votes
1 answer

Writing data to a local text file with javascript

I have created a procedure to write content to a text file in my local machine.