Thursday, October 10, 2013

HTML and Javascript to share page on social networing site

<a href="#" onclick="window.open('https://plus.google.com/share?url='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=626,height=436'); return false;" class="icon">Google Icon</a>
            <a href="#" onclick="window.open('http://twitter.com/home?status='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=626,height=436'); return false;" class="icon">Twitter Icon</a>
            <a href="#" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=626,height=436'); return false;" class="icon">Facebook Icon</a>

No comments:

Post a Comment

Please mention your comments.......