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
Java Last modified
Java sound, but the netscape version is better (see below this example)...