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!
document.getElementById()
. Otherwise - please show some code. – Wladimir Palant