I think you're referring to a website that uses popunder or clickunder advertising. These sites sometimes open ads when visitors click buttons or navigate between pages. You can search for terms like adult tube website with popunder ads or multi-step redirect website. That should help you find tutorials and examples of the type of setup you're looking for.