I have EZ Pages that are chained together , i.e. EZ Page#1 has a link to EZ Page#2. I would like to have one back button on each of these pages. The back button on EZ Page#2 should lead to EZ Page#1. The back button on EZ Page#1 should lead to the page from which it was called (i.e. the Home Page or another page, like the Contact Us page).

Is there a way to do this?

Can somebody provide me with a general code to implement this?
Stated otherwise, is there a way to know, when on one a specific page, the id of the page from which we are coming?

I know ZC works this way but I could not find the way to implement this.

Thanks.