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.


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);

Also see[edit]

External links[edit]

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 #