HELP! * GREY=local LOCAL HTML version of Foils prepared 26 February 1996

Foil 41 Event Handlers in JavaScript - I

From CPS616 Lectures on JavaScript CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. by Geoffrey C. Fox * See also color IMAGE

There are three major types of events which you can add event handlers
  • Form related events
  • links
  • Loading and Unloading new window
These are new attributes inside tags which traditionally respond to Mouse clicks or movement (or possibly text input)
onUnLoad event handler is called when you exit a particular page
onLoad event handler is called when you load (or reload on returning to page) a new page
  • <body onLoad='alert("You have just seen my first JavaScript Program Loaded!")' .. other body tags ... >



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Feb 18 1997