HTML Help

JAVA TEST PAGE

Writing text on a document


Getting Started With JavaScript

JavaScript, like most other scripting languages, is far easier to learn than a traditional programming language. In fact, if you can code HTML, then you can enhance your pages with JavaScript in no time.

What can you do with JavaScript?
Plenty -- like 3-D interactive buttons, alert boxes, clocks, calendars, interactive status bar messages, forms with data-verification, and mouse roll-over effects, just to name a few. Master these simple techniques and you'll be using JavaScript to change a document's appearance on the fly in no time.

So roll up you sleeves, fire up your text editor and get ready to bring your web pages to life.

This tutorial is adapted from Reaz Hogue's upcoming book "JavaScript for Pros" by MIS Press. Hoque is an author, software developer and web designer and is proficient in Pascal, Visual Basic, Assembler, C++ and SQL. For more info about the book, visit http://rhoque.com/book.


Java alerts
Command: alert( )
-Displays text with OK option.
Example: alert("Welcome!")

Command: confirm( )
-Displays text with OK and Cancel option. If the user chooses, OK, the function returns true, anything else returns false.
Example: confirm("Welcome!")

Command: prompt( )
-Displays text with single input filed and with OK and Cancel option. If the user chooses, OK, the function returns true, anything else returns false
Example:prompt("Welcome!")


Java time
Showing date and time

Displaying Date and Time



Java Last modified
Displaying Update Info


Java sound, but the netscape version is better (see below this example)...
Playing Sound On Demand

Playing on-demand sound:

Please click on the image below

Netscape version: bgsound src="future.mid" volume=65
embed src="future.mid" width=150 height=65
put "<>" before and after sentence to enable as shown...


Java banner
Banner


Java browser
Browser Detection


Java Time Online
Detecting User's Time on a Page


End test.