On the Google and Yahoo search pages, the URLs of the 10 search result links actually point to google.com or yahoo.com. The URLs have extra arguments that allow google.com
I think they actually have the full link in the href of the link. BUT they use javascript to catch the onclick and then when you click the link, it routes through their site.