ok, so how can prevent it?

On 8/27/07, Alex Vincent <[EMAIL PROTECTED]> wrote:
>
> That's Mozilla's way of saying target is null.
>
> On 8/27/07, joe ertaba <[EMAIL PROTECTED]> 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
> >
> >
>
>
> --
> "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
> [email protected]
> http://mozdev.org/mailman/listinfo/project_owners
>
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to