1
edit
Changes
no edit summary
:electedtreeitem.firstChild.setAttribute('style', 'background: #FF0000');
:</pre>
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/1c47b84ce54353a5/9daa474a70c5dff6#9daa474a70c5dff6 Specifying window.onload function] ===
To specify a function to run when the window is loaded,add the following code between the script tags in the XUL file:
window.addEventListener("load", function(e) { startup(); }, false);
Similarly, for onunload use the code:
window.addEventListener("unload", function(e) { shutdown(); }, false);
== UnAnswered Questions (UAQ) ==
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/19c4ac28a33071b3/3562fb411ad0f106#3562fb411ad0f106 Can I change the shape of the edge of the Toolbarbutton element?] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/41a1096602618693/fd3527c2490338b8#fd3527c2490338b8 Custom alert window] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/bc3b2322803e8178/87ca61ab171cbd55#87ca61ab171cbd55 Updating observes attribute] ===
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/62f0d1fb0ed52543/77ee30fd2fef45e6#77ee30fd2fef45e6 Hover Help on Dynamically Generated XUL Elements] ===