javascript - Social share button error -


this css code:

<style> .fa-google {   background: #dd4b39;   color: white; } .fa {   padding: 20px;   font-size: 30px;   width: 30px;   text-align: center;   text-decoration: none;   margin: 5px 2px;   border-radius: 50%; } </style> 

this button , javascript capture current url , display it:

<a class="fa fa-google" href="javascript:fbcurrentpage()" target="_blank" alt="share page"></a>     <script>     var url = window.location.href; //captures current url       function fbcurrentpage() {         window.open('https://plus.google.com/share'+escape(window.location.href)+'&text='+document.title + ' via : ' + url, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');         return false;      }     </script> 

and error google:

enter image description here


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -