Is there a way to make a webpage go back and then forward again in the history using JavaScript?

43 views Asked by At

I need to find a way to make a webpage go back then forward in the history as I am creating a simple YouTube adblocker chrome extension. So far, I have:

history.back();
history.forward();

However, this just goes back to the previous webpage. Is there any way to possibly implement this?

0

There are 0 answers