title: Call a apex method from a custom button
body: <p>i want to call a apex method from a custom Button</p>
  
  <p>I realise we can achieve this 2 ways</p>
  
  <ol>
  <li><p>Calling a VF page which in turn calls the method on the page attribute<br>
  <code>&lt;apex:page standardController="Opportunity" extensions="oppExt" action="{!changeStatus}"/&gt;</code></p></li>
  <li><p>use javascript to call the webservices method</p></li>
  </ol>
  
  <p>The question i have is on the which is best practice to it for this scenario.</p>
  
  <p>Thanks</p>