document.getElementById("statusbar-display").label = "Your message here";
That is all!
This blog is about Firefox extension development. During my work in this area I've solved different problems. And I will be glad to share my experience with other developers. I hope that my blog will help someone to solve their problems.
document.getElementById("statusbar-display").label = "Your message here";
<button type="menu" label="Main">It will look something like this:
<menupopup>
<menuitem id="miHomeId" label="Home Page"/>
<menuitem id="miAboutId" label="About"/>
<menuitem id="miContactId" label="Contact"/>
</menupopup>
</button>
#miHomeId {
list-style-image: url("chrome://toolbar/skin/Home.PNG");
}It is really strange, but it doesn't work. I've tried to find some examples where this problem is solved. But I have found nothing. So, I've found one interesting workaround:<button type="menu" label="Main">And you just need to specify your images in CSS:
<menupopup>
<menuitem id="miHomeId">
<img src="chrome://toolbar/skin/Home.PNG" id="imgHomeId"/>
<label value="Home Page"/>
</menuitem>
<menuitem id="miAboutId">
<img src="chrome://toolbar/skin/About.PNG" id="imgAboutId"/>
<label value="About"/>
</menuitem>
<menuitem id="miContactId">
<img src="chrome://toolbar/skin/Contact.PNG" id="imgContactId"/>
<label value="Contact"/>
</menuitem>
</menupopup>
</button>
#imgHomeId {
list-style-image: url("chrome://toolbar/skin/Home.PNG");
}
#imgAboutId {
list-style-image: url("chrome://toolbar/skin/About.PNG");
}
#imgContactId {
list-style-image: url("chrome://toolbar/skin/Contact.PNG");
}Here is the result: