I am creating a chrome extension by which i will be able to get xpath of the element on which it is clicked.
event.currentTarget
gives me document
and
event.toElement
gives me whole body tag.
chrome is giving me whole document or body puzzled by this behaviour, am i missing something?
or what are other ways to do that? please help.