https://developer.salesforce.com/forums/?id=906F00000008zaMIAQ Ankit AroraHere is the code : VFP view sourceprint?0102091011 12 13 14 15 1617 Class : 1public class t2{3 public PageReference myActionInController()4 {5 return null ;6 }7} As suggested by Bob you can also go with JavascriptRemoting, to know more visit this : http://forceguru.blogspot.com/2011/06/summer-11-features-part-2-javascript...