Ilia Choly
Ilia Choly

Reputation: 18557

javascript iframe link referrer

A page loads another domain in an iframe. If javascript inside the iframe clicks on a link in the iframe which domain will the referrer be?

Upvotes: 2

Views: 4127

Answers (3)

mch_dk
mch_dk

Reputation: 369

Unless it's IE6 - then it's the original page - strange? Ohh yes

Upvotes: 3

Adeel
Adeel

Reputation: 19238

Referer will be the page on which the link is clicked. In your case, it will be domain that is opened in iframe.

Upvotes: 7

Ravi Vanapalli
Ravi Vanapalli

Reputation: 9942

It will obviously refer to the new domain.

Upvotes: -1

Related Questions