Okay, the onclick event from last chapter was easy, but let's try creating all the code required to use an event from scratch.