Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Yhis "could" be done, but it will not be optimal, and will imply that you have 2 windows opened at a certain time, or you use ajax.
If your page2.html have nothing that the user must read or no actions, you can call it in a ajax request. It will load it in background, and you can setup the return handler to redirect the current windows to page3.html when page2.html finis loading.
The only thing is that if page2.html is not on the same domain, you won't be able to use this method, except by using an ajax proxy, but I don't know about the cookies in that case.
Or, you can have page1.html that open page2.html, and after a predefined timeout, close it and page1.html redirect itself to page3.html.
Either solutions are buggy, and prone to problems, and that raise the real question:
Why do you have to access a page just to setup a cookie, but want to redirect the user from that page directly ?
__________________
Only a biker knows why a dog sticks his head out the window.
|