# Events

The Captcha exposes [`Change()` and `Navigate()` events](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/captchaeventbuilder) that you can handle.

For a complete example on basic Captcha events, refer to the [demo on using the events of the Captcha](https://demos.telerik.com/aspnet-mvc/captcha/events).

## Handling by Handler Name

The following example demonstrates how to subscribe to events by a handler name.

```Razor HtmlHelper
        @(Html.Kendo().Captcha()
          .Name("Captcha")
          .Events(e => e
                .Change("calendar_change")
                .Navigate("calendar_navigate")
          )
        )
        <script>
        function calendar_navigate() {
            // Handle the navigate event.
        }

        function calendar_change() {
            // Handle the change event.
        }
        </script>
```

## Handling by Template Delegate

The following example demonstrates how to subscribe to events by a template delegate.

```Razor HtmlHelper
  @(Html.Kendo().Captcha()
    .Name("Captcha")
    .Events(e => e
        .Change(@<text>
          function() {
              // Handle the change event inline.
          }
        </text>)
        .Navigate(@<text>
          function() {
              // Handle the navigate event inline.
          }
          </text>)
    )
  )
```

## Next Steps

* [Captcha for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-core/captcha)

## See Also

* [Using the API of the Captcha HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/captcha/api)
* [Server-Side API of the Captcha](https://www.telerik.com/aspnet-mvc/documentation/api/captcha)
* [Client-Side API of the Captcha](https://docs.telerik.com/kendo-ui/api/ui/captcha)
