<script> function add_url(url){ var str = ''; document.querySelectorAll('tbody td.text-left:nth-child(2n)').forEach(cell => str+=cell.textContent); url.href += str;} </script>