[Project_owners] Finding Href
belaviyo at gmail.com
Mon Aug 27 13:32:38 PDT 2007
ok, so how can prevent it?
On 8/27/07, Alex Vincent <ajvincent at gmail.com> wrote:
> That's Mozilla's way of saying target is null.
> On 8/27/07, joe ertaba <belaviyo at gmail.com> 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 ==
> > when target is not a link: Error: target has no properties
> > any idea?
> > _______________________________________________
> > Project_owners mailing list
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> "The first step in confirming there is a bug in someone else's work is
> confirming there are no bugs in your own."
> -- Alexander J. Vincent, June 30, 2001
> Project_owners mailing list
> Project_owners at mozdev.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Project_owners