im trying to refresh a url that is opened until it is canceled by the user manually
This is the actual code that i used – Used for an exploit in most chrome blocking extensions that unblock a website after cancel. your text
<html>
<script>
let site = prompt("Site?")
let open_site = window.open(site)
while (true) {
window.open_site.reload()
}
</script>
</html>
2
Answers
In JavaScript, you can reload a webpage using the location.reload() method. This method reloads the current URL, just as if the user clicked the browser’s reload button
As per your code you are giving a prompt to user and then trying to open the entered input. You can use
window.location.href
for open the entered website