(function getURL() { let input = document.getElementById("url"); let url = window.location.href; input.value = url; })();