Microsoft HTA/Basic concepts

From Computernewb Wiki
Revision as of 22:58, 17 May 2022 by Dartz (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
!Microsoft HTA/Window styles and attributes >


Welcome to the Computernewb Wiki Microsoft HTA tutorial! HTA is a simple way to make desktop programs for Windows computers with Internet Explorer. It uses a similar syntax to HTML; in fact, HTA is just HTML with specialized extensions to allow for desktop programs to be made. HTA programs use the .hta file extension.

Getting started with HTA is easy! If you know how to write an HTML web page, then you're already on your way to mastering HTA. Let's start with a simple Hello World program:

Language: HTA, File Name: hello.hta
<!DOCTYPE html>
<html>
  <head>
    <title>Hello, world!</title>
    <HTA:APPLICATION
      APPLICATIONNAME = "Hello, world!"
    />
  </head>
  <body>
    <h1>Hello, world!</h1>
  </body>
</html>


As you can see, the special HTA-related attributes such as APPLICATIONNAME are located in the HTA:APPLICATION element, which is located in the head element. All window style attributes go into the HTA:APPLICATION element.