I am trying to redirect a page once a button has been clicked, so that, in all future occurrences of accessing that page in the future, the user gets taken to that page straight away.
But is it possible to set some kind of flag in javascript that will force this redirection to occur once this flag (set to true once the button has been clicked) is set?