Microsoft HTA/Basic concepts: Difference between revisions

From Computernewb Wiki
Jump to navigation Jump to search
computernewb>Judyhegao
m (Remove category)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 22:58, 17 May 2022

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