I'm making a "share button" to share the current page. I would like to take the current page URL and open it in a new window. I have the current URL part working, but can't seem to get the next part working.
I'm struggling with the syntax. I would like to specify the new window size to width=520, height=570
.
Something like:
<a target="_blank"
href="https://www.linkedin.com/cws/share?mini=true&url=[sub]"
onclick="this.href = this.href.replace('[sub]',window.location)">
LinkedIn
</a>
Any ideas?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…