skip to Main Content

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


  1. 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

    Login or Signup to reply.
  2. 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

    <html>
      <script>
        let site = prompt("Site?") ;
        window.location.href = site
      </script>
    </html>;
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search