I am trying to get which event is occured ::
function getEvent(){
alert(window.event);
}
I am getting below event object. I want it in string to compare. if event onclick event then I want to do the action. how can I get it in string? or how can I convert event object to string?
[object MouseEvent]