When using methods to add or remove events, we use the event names and not the property names. Instead of onclick, we write click.
onclick
click
Make sure to type click.