[Project_owners] Search Element By Click (DOM Inspector)

Jamie Bliss astronouth7303 at gmail.com
Sat Jul 16 22:16:15 EDT 2005

I believe that's the view "dom", the DOMViewer object. It handles all
the handling of the tree. See
<chrome://inspector/content/viewers/dom/dom.js> for the source. The
method you want is selectByClick() and those immediately following.

Basically, it hooks the onclick event for the top-level element.

On 7/16/05, Eric Jung <grimholtz at yahoo.com> wrote:
> Hi,
> I'm trying to duplicate the DOM Inspector's Search->Search Element By
> Click feature. When a user clicks on an HTML element, I'd like my
> extension to be able to get the name and attributes of that element.
> Anyone know how to do this, or an extension which does it?
> I've found the DOM Inspector code which does the flashing red border
> (Flash.js), but haven't yet been able to find the code which is
> called when Search->Search Element By Click is selected.
> Thanks for any help,
> Eric
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners

Thank you to JosephM for inviting me to Gmail!
Have lots of invites. Gmail now has 2GB.

More information about the Project_owners mailing list