From Oracle FAQ
Jump to: navigation, search

JavaScript is a scripting language produced by Netscape for use within HTML Web pages. The use of JavaScript improves the user's experience by making the Web more functional.

Don't confuse JavaScript with Java.

[edit] Examples

Move user's cursor to a field on an HTML page when the page is loaded:

<BODY onLoad="document.forms.MyForm.realname.focus()">

Print date:

<script type="text/javascript" language="JavaScript">
 var calendarDate = getCalendarDate();
 var clockTime    = getClockTime();
 document.write(' Date: ' + calendarDate);
 document.write(' Time: ' + clockTime);

[edit] Also see

[edit] External links

Glossary of Terms
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z #