[Project_owners] Finding Href
Alex Vincent
ajvincent at gmail.com
Mon Aug 27 13:25:29 PDT 2007
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 == undefined))
> 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
More information about the Project_owners
mailing list