Computer Learning Zone CLZ Access Excel Word Windows

So what is true for life itself is no less true for the universe: knowing where you came from is no less important than knowing where you are going.

-Neil deGrasse Tyson
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Tips & Tricks

New Tips Added Weekly!
Click here to get on our Mailing List

   
 
HTA

Beginner - Level 1

Create a Simple HTA

What is an 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.

To begin we will create a simple webpage. If you have never created a webpage before you may wish to take our Beginner HTML course. Another option is either our FrontPage or ASP courses.

Create a new file with the extension of .html. Let's call it Simple.

	<!DOCTYPE html>
	<html lang="en">
	<head>
		<title>A Simple Webpage</title>
	</head>

	<body>
		<h1>Heading</h1>
		<p>This is a paragraph.</p>
	</body>

	</html>
	

A simple page:
Simple

To make this a into an Application we just need to change the file extension to .hta and add a new tag <HTA:APPLICATION />.

This can contain many attributes and must appear in the <head> of the page.

	<!DOCTYPE html>
	<html lang="en">
	<head>
		<title>A Simple HTA Application</title>

		<HTA:APPLICATION
			APPLICATIONNAME = "A Simple HTA Application"
		/>
	</head>

	<body>
		<h1>Heading</h1>
		<p>This is a paragraph.</p>
	</body>

	</html>
	

You can add an Icon to make it look a litte more professional. Just add the ICON to the same folder that the HTA is in. If it's in another folder just change the path.

	<HTA:APPLICATION
		APPLICATIONNAME = "A Simple HTA Application"
		ICON = "599CD.ico"
	/>
	

Simple HTA

As you can see the URL bar and navigation buttons are missing. The Title has moved to the top of the Application and there is a scrollbar showing (disabled).

As this is a webpage you can add any HTML controls you are familar with, these will be convered in the next lesson.


You may receive a warning when you open a .hta as it can contain malicious code so be careful and only open trusted files
Warning HTA
Warning HTA


Sample Files
Simple.html
Simple.hta
599CD.ico


Index: Index | Next Lesson: Beginner Level 2

 

Alex Hedley (Avatar) By: Alex Hedley


Click here to sign up for more FREE tips

 

 

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 9/10/2024 12:28:28 PM. PLT: 0s