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

 

Thank you for the feedback!