JavaScript

  • The programming language of the browser
  • Allows client-side coding, where instructions can be executed on the browser
  • Makes HTML into DHTML:

    <script language="javascript">
       function swapImage(image, filename) {
          ... code to swap image ...
       }
    </script>
    ...
    < a href="something"
         onMouseOver="swapImage('i', 'rollover.gif');"
         onMouseOut="swapImage('i', 'normal.gif');">
         <img name="i" src="normal.gif">
    < /a>