My co-worker goofed up something. We have a page that goes to:
flying.html and one that goes to swimming.html
My co-worker sent out an email that told the flyers to go to swimming.html?id=fly
Is there a javascript redirect that will let us forward ONLY the people who have the ending ?id=fly to the flying.html page, but everyone else who is supposed to get to swimming.html will not be-redirected?
you can get the url in js using document.location and then do a substr on that to test the end of the url.
javascript:alert(document.location.toString().substr(-15));
the above code will tell you the last 15 chars in the url. (if you paste it into your location bar)
You can change it to look for the last 6 cahrs and make sure it’s == to “id=fly”
Good luck
Oh, that’s helpful. We already have a Cookie script that ads “id=fly” automatically into a form field. I’ll see if I can modify it…