25 March 2010

Introduction to new Language called HTML Applications(HTA)

Today we are asked to perform some task in our new project which includes some mail related  work. As we are Java/J2EE people, we are habitual to think in terms of java only.

But suddenly we have been introduced to a new language called HTML Application. In formal term its new language but its nothing but simple HTML+JavaScript/VBScript.

But its capable of performing lots of tasks like:-
1. Accessing local files
2. Registry Access(Read/Write)
3. FTP Access
4. Mail Retrieve from Outlook
and much more.

The following is one simple example of HTML Application hello.hta
<html>
<HEAD>
<TITLE>My Monster Application</TITLE>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="monster"
BORDER="none"
CAPTION="no"
ICON="/graphics/creature.ico"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
SYSMENU="no"
WINDOWSTATE="maximize">
</HEAD>
<body>
HelloWorld using HTA
</body>
</html>

Now your first HTML Application is ready to run. To run the application just double click on the file and it will show the output.

No comments: