Detect Clicked Links in Internet Explorer and Netscape Navigator

Hi all,
  How do I detect clicked links in Internet explorer and Netscape Navigator?
Can someone please give me some source code?
Thanks