# Events

The Button exposes a [`Click()` event](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/buttoneventbuilder) that you can handle.

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

```Razor HtmlHelper
	@(Html.Kendo().Button()
		.Name("button")
		.Content("Sample Button")
		.Events(e => e.Click("onClick"))
	)
```

```Razor TagHelper
<kendo-button name="textButton"
              on-click="onClick">
    Sample Button
</kendo-button>
```

```JS script
	<script>
		function onClick() {
			alert('Button clicked!')
			window.location.href = 'https://en.wikipedia.org/';
		}
	</script>
```

## Next Steps

* [Using the Button Events (Demo)](https://demos.telerik.com/aspnet-core/button/events)

## See Also

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