Jump to content


Photo

ActiveElement


  • Please log in to reply
No replies to this topic

#1 azuka

azuka
  • Members
  • PipPipPip
  • Advanced Member
  • 55 posts
  • LocationNigeria

Posted 13 February 2006 - 06:17 PM

I am writing a PHP-Ajax web application. I need to track all links in my document. Using IE I redirected all clicks to a function
document.onclick = function(){
 var active = document.activeElement;
 //other content goeshere
}

I want to be able to get the element that was clicked in mozilla and other gecko browsers. I don't intend to loop through all nodes or all links or to add an onclick attribute to the links. Can someone help me?
Given enough eyeballs all bugs are shallow. My Website




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users