I've seen this in a number of websites in all browsers. When you hover over a link, a preview of the URL is displayed somewhere in the browser, and the URL is to a specific webpage such as www.google.com
. However, when you click on it, another page is called instead which then eventually redirects to the originally previewed link, such as www.somedomain.com/openurl?url=www.google.com
. The purpose of such a feature is to wrap links in a common "click counter" so every link which is clicked is deliberately redirected through a common server which in turn redirects to the original URL.
How do I accomplish this in any type of HTML page? Doesn't matter if it's specific to HTML 4 or 5, I just want to know the fundamentals of how it's done. If I knew the terminology I would have googled it.
PS - I'm not talking about URL Re-writing which is the address bar - I'm talking when you hover over a hyperlink and the browser shows you a preview.