Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recording Links Leaving a Site... (with a twist)

Status
Not open for further replies.

Rebies

Programmer
Mar 7, 2002
58
US
I am in the process of co-branding part of my site, and it will not be hosted by me. So I would like to add a few lines of JavaScript to record all of the links that leave the co-branded site to anywhere else on the Internet.

I'm thinking of using JavaScript to listen for a link to be clicked that leaves the site, use that JavaScript to hit a 1 x 1 pixel on my acutal site and then record this to a database.

How in the world can I get JavaScript to listen to links off a specific page though without having access to the anchor tag directly?

Thanks for any ideas.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top