Thanks for visiting IT-arama

This site proudly sponsored by:
Contact us here
Other ITarama affiliates:
ITarama recommends:
Firefox 2

HTML scripting


This page will briefly discuss scripting within web pages. Since Javascript functions as the de-facto standard for web page scripting, it is the language we will discuss here. Javascript is an interpreted (it can be read and executed in real time), as opposed to a compiled (must be read and executed before it is run) language, its code can be put directly into an HTML page. To keep older, non-javascript aware browsers from having trouble, you must surround the Javascript code with HTML comment tags.

Writing scripts is a light version of programming. To write scripts is to write programs. Programming is outside the scope of this Web site, so if you actually want to learn how to write your own scripts, just go to your favorite search engine site and search for scripting or Web page scripting and you will find many sites to show you how.

Javascript commands must be placed within a pair of SCRIPT tags. You must always close script tags. There are two places where Javascript can reside on an HTML page. Javascript can live within the HEAD tags and also the BODY tags. All of the pages which make up ITarama contain some Javascript. On this page we will show you the scripts we used and will provide brief explanations of what is going on.


The following script is a Javascript function that checks to be sure that something is entered into each required field on our sign up page. If the user tries to submit a form by hitting the "Sign me up" button and any of the required information is missing, an alert box pops up and tells the user what is missing and places the cursor into that field to await input.


This next script is a function that generates the pulldown link box at the top of each page. This script can also work with non Javascript browsers via a CGI script housed on the server through the use of the NOSCRIPT tags.


This script reads the system date and converts it into the day of the week, the month and the year and displays it near the top of all ITarama pages.


This script creates a clock and displays it in the title bar of every page of the IT-arama site. This script does not work in the Mozilla Firefox browser.


© 2000 - 2010 by 985 computing LLC
ITarama - The home of short sweet Web tutorials