Greetings
Can I ask what you are trying to achieve?
If I understand correctly you have a node and you are trying to get the
closest ancestor to that node that has a href attribute?
How are you determining what node to start at?
Trevor
joe ertaba wrote:
hi
i am using this code to find links href
var target = e.target;
while(target.href == undefined)
target = target.parentNode;
var href = target.href;
it works good but it get error at line ( while(target.href ==
undefined)) when target is not a link: Error: target has no properties
any idea?
------------------------------------------------------------------------
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners