• Browsers have limited functionality
    • Text, images, tables, frames
  • JavaScript allos for interactivity
  • Initially developed as a client side scripting language
    • Create dynamic web content in the browser
  • Java and Javascript
    • They were developing a web-scripting language to be embedded in HTML and executed
  • JavaScript ALlows INteractivity
    • Site navigation
    • Perform calculations
    • Validation of input
    • Improve appearance
      • Especially graphics
      • Visual feedback
  • JavaScript Statements
<html>
<head><title>My Page</title></head>
<body>
<script language=”JavaScript”>
document.write(‘This is my first JavaScript Page’);
</script>
</body>
</html>
<html>
<head><title>My Page</title></head>
<body>
<script>alert(‘alert’)</script>
</body>
</html>
<script>
document.write(‘This is my first JavaScript Page’);
</script>