#Help with loop that can be paused by key press.

2 messages · Page 1 of 1 (latest)

distant basin
#

Listen for the keydown event on the document. In the event handler, clear the interval. You must assign the setInterval() to a variable to be able to do this.

distant basin