I am developing in javascript and I would need to get the xpath of the element clicked. I know that in order to get the id we can do :
element.onclick = function(event)
{
var target_id = event.target.id;
}
How could I do to get the xpath ?
Regards.