xul文件中加入js代码
<prefwindow id="NotificationsDialog" type="child"xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
dlgbuttons="accept,cancel"
title="¬ificationsDialog2.title;">
<script>
<!
window.addEventListener("load", function () {
document.getElementById("title_richinfo").value=document.getElementById("NotificationsDialog").getAttribute("title");
});
]]>
</script>
......
</prefwindow>
页:
[1]