I googled and googled and I concluded that it\'s very hard to get answer on my own.
I am trying to use jquery or JavaScript to get a property of clicked element. I c
$(document).click(function(e){
var clickElement = e.target; // get the dom element clicked.
var elementClassName = e.target.className; // get the classname of the element clicked
});
this supports on clicking anywhere of the page. if the element you clicked doesn't have a class name, it will return null or empty string.