title: How to create custom html helper with callback javascript function?
body: <p>I know that exists <strong>Ajax.ActionLink</strong> function, which signature like this:</p>
  
  <pre><code>@Ajax.ActionLink(
      "click me", 
      "SomeAction",
      "SomeController",
      new AjaxOptions { 
          HttpMethod = "POST", 
          OnSuccess = "success" 
      }
  )
  </code></pre>
  
  <p>And i can to attach my callback for example:</p>
  
  <pre><code>function success(data) {
      var json = $.parseJSON(data.responseText);
      alert(json.someProperty);
  }
  </code></pre>
  
  <p>I know that html helpers is extension methods. Question: How to create custom html helper like Ajax.ActionLink in which i can specify callback function. Who can give me example how to make that extension method with ability to take callback function as parameter and execute it.</p>