Is it possible to have a back button feature that goes back from the previous page if it was coming from the website itself (i.e. page 1 to page 2). But when user come from other site (i.e. google search result) it links to a general page from my website. It can be javascript or php. Can someone pls give me an example script or link to a site that can get me started? thx.