Home

Java (Programming Language)

Java is a computer programming language that is concurrentclass-basedobject-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another.

 

JavaScript Allows Interactivity

  • Improve appearance

  • Especially graphics

  • Visual feedback

  • Site navigation

  • Perform calculations

  • Validation of input

  • Other technologies

How Does It Work?

  • Embedded within HTML page

  • View source

  • Executes on client

  • Fast, no connection needed once loaded

  • Simple programming statements combined with HTML tags

  • Interpreted (not compiled)

  •  No special tools required

Learning JavaScript

  • Special syntax to learn

  • Learn the basics and then use other people's (lots of free sites)

  • Write it in a text editor, view results in browser

  • You need to revise your HTML

  • You need patience and good eyesight!

JavaScript Statements

<html>

<head><title>My Page</title></head>

<body>

<script language="JavaScript">

document.write('This is my first ®

JavaScript Page');

</script>

</body>

</html>

 

JavaScript Popup Boxes

Alert Box
§An alert box is often used if you want to make sure information comes through to the user.
§When an alert box pops up, the user will have to click "OK" to proceed.

<script>

alert("Hello World!")

</script>

 

Html
CSS
JAVA