rockwilda — 2010-12-08T14:59:37-05:00 — #1
For example if keyword 1 contains "word1" in the keyword phrase automatically redirect to page1.html. If keyword 2 contains "word2" in the keyword phrase automatically redirect to page2.html.
Does anyone know how to do this? Any help would be greatly appreciated!
paul_wilkins — 2010-12-08T20:59:24-05:00 — #2
I believe that document.referrer can provide that info.
rockwilda — 2010-12-09T08:46:30-05:00 — #3
How can document.referrer be used?
paul_wilkins — 2010-12-09T08:49:53-05:00 — #4
You use document.referrer to retrieve a string that contains the path the person came from.
var referrer = document.referrer;
Which in the case of my viewing this particular thread, is:
Then you use standard string manipulation techniques to retrieve the information you want from that string.