Attach a click() event to the google plus button?

前端 未结 2 1742
情深已故
情深已故 2021-01-14 00:54

I\'d like to add a alert message on the page when a user clicks \'g+\' button. how can i achieve this ?
here is code :



        
2条回答
  •  感动是毒
    2021-01-14 01:30

    Try reading their documentation which is actually quite good. They provide access to a callback function. See the section tag attributes.

    https://developers.google.com/+/plugins/+1button/#script-parameters

提交回复
热议问题