|Ned Batchelder : Blog | Code | Text | Site|
Referrers in iframes
» Home : Blog : December 2008
Yet another in a recent spate of browser discoveries, this one has to do with displaying pages in iframes, and how referrers work with them.
Here's the quiz: suppose page A displays page B in an iframe. What is the referrer for page B? The answer is simple: page A. Now suppose that B contains a link to page C. Click the link, and the iframe now shows page C. What referrer is used for C?
The answer isn't so simple. Turns out Firefox 3 and Safari 3 both report that C's referrer is B, while IE 6 reports that it is A! I don't have IE 7 or 8 at the moment to try.
BTW: all these niggling browser behavior posts are the result of trying to hire a web front-end developer, and me having to help out while we look...
tagged: web» 6 reactions