1) Select the HTML panel
Firebug.chrome.selectPanel("html");

2) Get an element from the page
var element = context.window.document.getElementById("my-element");

3) Select an element in the panel
var htmlPanel = context.getPanel("html");
htmlPanel.select(element);

The |context| object collects meta-data of the associated page (it's often 
passed as an argument into many callbacks)
There is also a global: Firebug.currentContext that is associated with the 
current page (selected tab), however you should avoid using that if 
possible (and handle your context related actions in appropriate callback).

Honza

-- 
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

Reply via email to