I assume you want to grab the value for whatever user inputs. If so, try something like this.
var url = document.getElementById("url-value").value;
getUrlPageContent(url);
Keep in mind that you are grabbing whatever is typed into the input. You will need to add some type of validation as well……..
solved jQuery document.getElementById() issue