How to get Google plus share in pop-ups like Twitter?

The Google+ badge automatically splits the page into a HOVER and does not require a click, like others. Is there anything that can be done about this to require a click, like the others [fb, twitter], and to load a pop-up window, as is the case with Twitter stock icons?

+5
source share
1 answer

The JavaScript method window.openwill open a new window. You can combine this technique with a link to achieve your goal. Here is an example of this method, taken from official documents. Just substitute your destination URL for http://example.com.

<a href="https://plus.google.com/share?url=http://example.com"
  onclick="javascript:window.open('http://example.com','',
  'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');
  return false;">
  <img src="https://www.gstatic.com/images/icons/gplus-64.png" 
    alt="Share on Google+"/>
</a>
+7
source

All Articles