Netscape 6, Part V: DOCJSLIB 1.1: Handling Image Clicks - Doc Javascript | WebReference

Netscape 6, Part V: DOCJSLIB 1.1: Handling Image Clicks - Doc Javascript


Netscape 6, Part V: DOCJSLIB 1.1

Handling Image Clicks

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:

Next: How to write the Tic-Tac-Toe's functions

http://www.internet.com


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: January 29, 2001
Revised: January 29, 2001

URL: http://www.webreference.com/js/column76/8.html