Consider a scenario with two distinct pages:
- website.com/page1
- website.com/page2
Page 1
contains multiple buttons, each leading to Page 2
.
On Page 2
, there are various content sections (divs).
Is there a straightforward method to display specific content sections on Page 2
based on the button clicked on Page 1
? I recall something about redirection being involved?
For instance, if Button 1 is clicked, only sections 2 and 3 will be visible on Page 2
, but if Button 2 is clicked, only section 1 will be displayed on Page 2
.