JavaScript

From the Simple English Wikipedia, the free encyclopedia that anyone can change

Jump to: navigation, search

JavaScript is a scripting language for a computer. It is often run in a web browser applications that allow the use of dynamic content like message boxes popping up or a live clock. It is different from the programming language Java, although it's syntax is similar.

[change] Example

The following script writes "Example" on the screen:

<script language="JavaScript">
function Example(){
document.write("Example");
}
Example();
</script>

The JavaScript is enclosed by <script> </script> tags, to tell that it is a script and not text.

[change] See also

[change] Other websites

Wikibooks has more about this subject:
Personal tools