Msg#: 3760702 posted 7:46 pm on Oct 7, 2008 (gmt 0)
well you can do this if when they click on banners it results in a post. If you make them forms you can pass in values for going_to and came_from
So you would set up a redirect page that your banners post to. Then when users click a banner from Domain1.com... that will result in a post to your redirect page make sure you pass in values came_from and going_to, in this case "came_from=Domain1.com" and "going_to=Domain2.com"
When the request comes into the redirect page simply check the going_to page and force a redirect from this page to the going_to page.
If the user hits back it will repost the form data and they will get redirected back to Domain2.com
If you want to do a redirect to Domain3.com if they hit back then just add in code that checks to see if came_from equals the referrer.... if they hit back it won't and you can redirect to Domain3.com
[edited by: Demaestro at 7:50 pm (utc) on Oct. 7, 2008]
Msg#: 3760702 posted 8:07 pm on Oct 7, 2008 (gmt 0)
What are you using this for? Do you own Domain1? Are you trying to disable the back button so that people who stumble upon your site can't leave easily...and even worse...redirecting them to sites as link exchanges? If so, I would advise NOT doing this as you won't last long.
If not, then gs1md is right. Do not mess with browser functions such as the back button or no one will be coming back.