docs/getting-started/javascript.md: Hyperlink preventDefault() mention

[skip sauce]
This commit is contained in:
Chris Rebert 2015-10-19 23:45:23 -07:00
parent 5b113b2c71
commit dd78e75991
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ $.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Boot
Bootstrap provides custom events for most plugins' unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. `show`) is triggered at the start of an event, and its past participle form (ex. `shown`) is triggered on the completion of an action.
All infinitive events provide `preventDefault` functionality. This provides the ability to stop the execution of an action before it starts.
All infinitive events provide [`preventDefault()`](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault) functionality. This provides the ability to stop the execution of an action before it starts.
{% highlight js %}
$('#myModal').on('show.bs.modal', function (e) {