Sorry, the last line should read:
var href = target.href;
Frederik Vanderstraeten schreef:
> Hi,
>
> This should work, although it's untested.
>
> var target = e.target;
> while(target.href == undefined){
> target = target.parentNode;
> }
>
> var href = e.target.href;
>
> - Frederik Vanderstraeten
>
> joe ertaba schreef:
>> hi
>>
>> any body know how to get href of bold words in this page
>>
>> http://www.google.com/search?sourceid=navclient-ff&ie=UTF-8&rlz=1B2GGGL_enIR207IR207&q=book
>> <http://www.google.com/search?sourceid=navclient-ff&ie=UTF-8&rlz=1B2GGGL_enIR207IR207&q=book>
>>
>> i can get href of non bold part by e.target.href but it seem that
>> doesn't work for bold words like book:
>>
>>
>> Google Book Search <http://books.google.com/>
>>
>>
>>
>>
>> On 7/13/07, *Michael Vincent van Rantwijk, MultiZilla* <
>> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>>
>> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
>> > Nickolay, care to elaborate? I'd like to document this at MDC.
>>
>> This way your extension gets notified first, before the page ;)
>>
>> --
>> Michael Vincent van Rantwijk
>> - MultiZilla Project Team Lead
>> - XUL Boot Camp Staff member
>> - iPhone Application Developer
>>
>> _______________________________________________
>> Project_owners mailing list
>> [email protected] <mailto:[email protected]>
>> http://mozdev.org/mailman/listinfo/project_owners
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners