click

Fires when the user taps the button.

Example - prevent navigation

<div id="foo" data-role="view">
  <a data-role="button" href="#bar">Foo</a>
</div>

<div id="bar" data-role="view">
  <a data-role="backbutton" data-click="onClick">Back</a>
</div>

<script>
var app = new kendo.mobile.Application();
function onClick(e) {
  e.preventDefault(); //prevent navigating back
}
</script>

Event Data

e.target jQuery

The clicked DOM element

e.button jQuery

The button DOM element

In this article