Thank you for the feedback!

<script>
document.body.onload=function () {
            var urlinfo=window.location.href;
            var spliturl=urlinfo.split("?");
            var geturl=spliturl[1];            
            document.getElementById('pageURL').value = geturl;

   
}
</script>