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 :
Try reading their documentation which is actually quite good. They provide access to a callback function. See the section tag attributes.
tag attributes
https://developers.google.com/+/plugins/+1button/#script-parameters