Answer the question
In order to leave comments, you need to log in
Callback after sharing on social media?
Colleagues, good evening!
I implemented the share block on the site as follows:
<a href="http://vkontakte.ru/share.php?url=site.ru/&title=Title">Вконтакте</a>
<a href="http://www.facebook.com/sharer.php?u=site.ru/&title=Title">Facebook</a>
$('.share a').click(function(e){
e.preventDefault();
var url = $(this).attr('href');
socialopen(url);
return false;
});
function socialopen(url){
var winpar='width=500,height=400,left=' + ((window.innerWidth - 500)/2) + ',top=' + ((window.innerHeight - 400)/2) ;
window.open(url,'tvkw',winpar);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question