I have a cancel button in a form:
@using (Html.BeginForm(\"ConfirmBid\",\"Auction\")) { some stuff ...
This is my button HTML:
@Localization.Cancel
Then to customize the onclick attribute in some views I do this:
onclick