Introducing DOCJSLIB, Part I: Writing the Event Handler - Doc JavaScript | WebReference

Introducing DOCJSLIB, Part I: Writing the Event Handler - Doc JavaScript


Writing the Event Handler

Let's write now the handleImageClick() event handler. This is usually the heart of the application. The Connect-Three game is played by the "O"s and the "X"s, taking turns in clicking the game's boxes. Let's list the tasks we need to do in the handleImageClick() event handler:

http://www.internet.com


Created: October 12, 1998
Revised: October 12, 1998

URL: http://www.webreference.com/js/column27/appevent.html