I am trying to redevelop firefox addon, to give it more funcionality. I found JS file where all the functions are and started to edit it.
What I want to achieve is to get target of an anchor under mouse pointer (when mouse pointer is over anchor, I right click and call addon from context menu).
For example when I have anchor which HTML code is:
[CODE]<a href=”somewehere.com/place”>place</a>
when I right click on this code and call my addon I would like to alert its href (somewehere.com/place)
I wrote a function:
[CODE]
function ff()
{
var current_target=this.href;
alert(current_target);
}
but it gives me udefined on alert
[URL=”http://i56.tinypic.com/au7gk1.png”]UNDEFINED
Any hints to achieve this are highly appreciated.
Thanks