I have made a HTML page with a form with a URL input field. When you type the URL into the input field and click the button, I want it to redirect me to that URL. Instead, it's putting the URL at the end of file:///Users/Desktop/index.html/www.google.co.uk. My webpage is only local atm, is it possible to do this?
$("#submit").click(function sendurl()
let url = document.getElementById('web-address').value
window.location.href = url;
});