javascript - ShareThis Button to Open in Popup -


I am using Sharethis button to share social media. The problem is that when you click on Twitter, Facebook, Linkedin or other buttons, it opens in a new tab. I want to open it in the popup window. It is possible to do this here I am using the code

This head is in the section

 . & Lt; Script type = "text / javascript" & gt; On switchTo5x = true; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://w.sharethis.com/button/buttons.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; StLight.options ({Publisher: "ur-3a946ea7-4e9c-2bf6-f820-37c233b1bc9c", doNotHash: false, doNotCopy: false, hashAddressBar: false}); & Lt; / Script & gt;   

and goes to the body of this page

 . & Lt; Span class = 'st_sharethis_large' DisplayText = 'ShareThis' & gt; & Lt; / Span & gt; & Lt; Span class = 'st_facebook_large' displayText = 'Facebook' & gt; & Lt; / Span & gt; & Lt; Span class = 'st_twitter_large' displayText = 'tweet' & gt; & Lt; / Span & gt; & Lt; Span class = 'st_linkedin_large' displayText = 'linkedin' & gt; & Lt; / Span & gt; & Lt; Span class = 'st_pinterest_large' displayText = 'Pinterest' & gt; & Lt; / Span & gt; & Lt; Span class = 'st_email_large' displayText = 'email' & gt; & Lt; / Span & gt;   

This did not work either

 . & Lt; Script type = "text / javascript" & gt; On switchTo5x = true; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "w.sharethis.com/button/buttons.js"></script & gt; & Lt; Script type = "text / javascript" & gt; StLight.options ({Publisher: "ur-3a946ea7-4e9c-2bf6-f820-37c233b1bc9c", popup: 'right' doNotHash: false, doNotCopy: false, hashAddressBar: false}); & Lt; / Script & gt; In addition to the    

popup option, you want to Set servicePopup true when the stLight.options () call option.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -