use variables to show hide items

I am wondering if there is a way to create buttons on a page that cause images on another page to show or hide?For example, if the user clicks a button on page 1, and image displays on page 2.i am still getting used to variables, so need help!

Discussions have been disabled for this post