Overview

Java vs. Javascript
Server-side scripting vs. Javascript
  • Client-side

    The basic format for a javascript-enhanced web-page is the following:

    	<html><head><title>MyPage</title>
    	<script type="text/javascript" language="javascript1.1">
    	<!--
    	---------SCRIPT GOES HERE---------------------
    	//-->
    	</script>
    	</head>
    	<body>
    	--------REFERENCES TO SCRIPTED FUNCTIONS------
    	</body>
    	</html>
    

  • Variables
  • Function declarations
  • Equivalence operators
  • Operators
  • More operators
  • Conditional statements
  • Compound conditions
  • Object notations
  • Events

    Demos

  • club (cookie example)
  • countdown (math functions)
  • frames (targeting with javascript)
  • img switching (on rollover)
  • imgswitch
  • login
  • magic cookie
  • morecookie
  • mouseover
  • newwin
  • random
  • statusfield
  • version control
  • which browser
  • Showing last modified date
  • A simple Javascript calculator

    Links

  • Another Javascript resource