在head標籤內的網站中添加以下代碼:
<script> function SocialShare(url) { window.open('https://ifvex.com/share?url=' + url, '', 'height=600,width=800'); } </script>
然後,在將您要共享的URL更改為頁面HTML之後,放置共享按鈕:
<button onclick="SocialShare('http://yoursite.com/')">Share</button>
Also you can use this code to share the current page:
<button onclick="SocialShare(window.location.href)">Share</button>