Reputation: 1220
Assume there is a link like <a href="mysite.com">click here</a>
in a footer of a website.
is there any way to change this link somehow that the admin of mysite.com website could detect from which site this user is coming from?
Thank you.
Upvotes: 0
Views: 197
Reputation: 178285
You can do this
<a href="https://example.com"
onclick="this.href = 'https://example.com/?ref='+encodeURIComponent(location.host)">click here</a>
Upvotes: 1