0
votes

I am new to Firefox addon development and just figured out how to add a XUL toolbarbutton to the browser's toolbar.

I'm not sure, however, how to get a handle to that button from my js code.

I need to swap the image on the button when certain content is found within a web page.

Just to be clear, my issue is not locating the page content, but making my toolbarbutton "react" to it.

Thanks!

1
You use document.getElementById(). Otherwise - please show some code.Wladimir Palant

1 Answers

0
votes

Having a similar issue, I managed to get a mouseover event attached to a button. See my thread here.

It's a bit complicated. You have to add addEventListener to the xul node.