JavaScript

Originally developed by Brendan Eich and known as LiveScript, which was renamed to JavaScript in 1995. JavaScript is an interpreted programming language that allows a web designer the ability to easily insert code into their web page. JavaScript is commonly placed into a HTML, ASP, or a similar file and run directly from the web page to perform tasks such as printing the time and date, creating a calendar, or other tasks that are not possible through plain HTML. Below is a basic example of a JavaScript that prints Hello World!.

<SCRIPT LANGUAGE="JavaScript">
<! -- Hide from old browsers
document.write('Hello World!');
// Stop hide -->
</SCRIPT>

Below is an example of a JavaScript implemented into this page that will print the current time and date. Like all JavaScript files the user must have a browser capable of viewing JavaScript as well as have it enabled. If JavaScript is not enabled the time and date will not be visible.

Todays Date:

Tip See the JavaScript time and date source code to create this feature on your own webpage.

Although JavaScript files are often embedded into the HTML file, users can also save their JavaScript code in an external file. This file often ends with a .js file extension.

Also see: Bookmarklet, Java, JavaScriptCore, jQuery, JScript, LiveScript, Programming definitions, VBScript