I needed to get a unique URL for each page and adapt the script that I found using the other members here.
One for the type button and one for the comment field. Is there a more elegant way to do this without a lot of code?
<br> <div id="thelike"></div> <script> var thisurl = document.URL; function changeCommentsUrl(newUrl){ </script> <br> <div id="thecomments"></div> <script> var thisurl = document.URL; function changeCommentsUrl(newUrl){ </script> <br>
source share