$(window).click(function(e) {
alert(e.???);
});
How can I check how id, class or other identifiers of the current click?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The event object gives you a
targetproperty that refers to the actual element clicked, and acurrentTargetproperty that refers to the element to which the handler was bound.Those elements are represented as DOM nodes, which are just objects with their own properties, which enable to you to access certain aspects of the state of the element.