Tiện ích chia sẻ
Thêm mã sau vào trang web của bạn, bên trong thẻ đầu:
                                                                        <script>
                                                                          function SocialShare(url) {
                                                                              window.open('https://thiep.id.vn/share?url=' + url, '', 'height=600,width=800');
                                                                          }
                                                                        </script>
                                                                        
Sau đó đặt nút chia sẻ sau khi thay đổi URL bạn muốn chia sẻ lên trang HTML của bạn:
<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>
Ví dụ:
Thiep's Blog https://thiep.id.vn