firemail

标题: xul文件中加入js代码 [打印本页]

作者: hechengjin    时间: 2016-5-18 12:28
标题: xul文件中加入js代码
<prefwindow id="NotificationsDialog" type="child"
            xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            dlgbuttons="accept,cancel"
            title="&notificationsDialog2.title;">
<script>
<![CDATA[
window.addEventListener("load", function () {

document.getElementById("title_richinfo").value=document.getElementById("NotificationsDialog").getAttribute("title");
   
});
]]>
</script>

......
</prefwindow>






欢迎光临 firemail (http://www.firemail.wang:8088/) Powered by Discuz! X3