[Project_owners] Finding Href

joe ertaba belaviyo at gmail.com
Mon Aug 27 13:18:37 PDT 2007


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20070827/c73283d9/attachment.html 


More information about the Project_owners mailing list