how do I replace the whole URL and then replace and load it with the new URL that is entered in a prompt by a user at the moment I have got this far
var website = prompt("enter a website");
document.location.href.replace = website;
I have tried different once but it adds the URL I already have. I want the whole URL replaced the url that needs to replaced
thanks