You are here

Attach a click() event to the twitter follow button?

//Here is you normal twitter button code

//My custom function

function mycustom() {
  alert('this is a test')
}

//Bind the custom function with twitter event

twttr.ready(function (twttr) {
  twttr.events.bind('click', mycustom);
});
code type: