Google Plus Share Post



HTML Code:
--------------------------------------
<!DOCTYPE html>
<html>
<head>
<title>Google Plus Share Post</title>
</head>
<body>
<a href="https://plus.google.com/share?url=https://www.google.com/maps" 
onclick="javascript:window.open(this.href,'', '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>
</body>

</html>

PHP Code:
------------------------------------------------------

<?php 
$googlePlus = '<a href="https://plus.google.com/share?url=http://google.com/maps" 
onclick="javascript:window.open(this.href,\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;">
Google Plus
</a>';
echo $googlePlus;

?>
------------------------------------------------
Output:


Share on Google Plus

About Ram Pukar

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment